Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (7) </ [1] 2 3 4 5 6 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

new topic new poll
Topic: removing an extension< Next Oldest | Next Newest >
ceicke Offline





Group: Members
Posts: 1
Joined: Aug. 2005
Posted: Sep. 06 2005,14:23 QUOTE

Hi!

I have installed the XFree86.dsl extension and now I would like to remove it again. Is there a simple way to determine which files were added by the package?

Thanks,
Christoph
Back to top
Profile PM 
adssse Offline





Group: Members
Posts: 505
Joined: Mar. 2005
Posted: Sep. 06 2005,14:36 QUOTE

'Uninstalling' an extension depends on what kind of install you have done. If you have a frugal install, you can simply delete the extension and reboot. If you have done a hd installation, I dont know of any way to uninstall it except to find out all the files changed and unchange/delete them. I believe there has been some talk of a script to uninstall, but I dont believe anything is finished.
Back to top
Profile PM 
undertow Offline





Group: Members
Posts: 48
Joined: Mar. 2005
Posted: Sep. 10 2005,20:57 QUOTE

*dont try this at home - not quite as easy as i thought.  see next posting*

i started digging around and the basics of it don't look very hard.  If somebody wants to knock out a little bash script for this, i think we could finally say we have an uninstaller!

removing _all_ files installed by either a .dsl or a tar.gz is as easy as being root, cding to / and running:
Code Sample
tar tzf /archive/location/blah.dsl | xargs rm


better yet, you could do this:
Code Sample
tar tzf /archive/blah.dsl > blah.dsl-remove.list

and then get rid of the .dsl and simply do a
Code Sample
cat blah.dsl-remove.list | xargs rm

to uninstall.

xargs does everything.  you can cat the remove.list and then pipe that to an 'xargs find' and also determine which files already exist and ask the user if they want to back them up for a rollback later...although i didn't find any instances of this with the packages i tried...

It could go something like:
cat package contents > remove.list
cat remove.list | xargs find > $files
prompt user: 'make a backup of $files?'
if yes, cp $files > /home/dsl/rollback/
mydsl-load package
fi!
(did this all on a frugal 1.5 install)
Back to top
Profile PM 
undertow Offline





Group: Members
Posts: 48
Joined: Mar. 2005
Posted: Sep. 10 2005,23:09 QUOTE

ive jumped to a few conclusions here... the tar txf listing includes dirs , and erasing /usr/bin isnt doing anyone any good.  might want to _not_ try this on a hdd install until that is figured out.
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Sep. 10 2005,23:17 QUOTE

Ok,
Say you install something like gnu-utils.dsl,
which REPLACES all the symlinks to busybox with a true executable.

Then you remove all the executables with your uninstaller.

What now?
Where are all my old symlinks?

Same with nvidia.dsl , or xfree86.dsl, which replaces key files
for X . What do you do when you uninstall them,
and find you have no X anymore?

Now, for a simple .tar.gz, which ONLY installs to /tmp, /home/dsl, and /opt
this might work in some instances..
This is the basis for the .uci files working so well at uninstalling.

Some programs even make additional files into the filesystem at execution time.
This is an issue even with .uci files, which may make new files in /home/dsl .
( like /home/dsl/.gqview , or /home/dsl/.wesnoth , as examples )

Now I don't experience ANY of these issues  :)
My gnu-utils.dsl, XFree86.dsl, and nvidia.dsl are EASILY uninstallable..
I run frugal !!!

Team DSL is working on solutions for these items..   stay tuned.
Do take note that DSL strives to be the best LIVE CD,
as it's number one mission and goal ..

73
ke4nt
Back to top
Profile PM 
33 replies since Sep. 06 2005,14:23 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (7) </ [1] 2 3 4 5 6 ... >/
new topic new poll
Quick Reply: removing an extension

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code