This is a discussion on removepkg hangs when ROOT != / within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, I installed a new package using the following command: installpkg -root /usr/local mozillafirefox-0.8-i686-1jim Then, I tried to uninstall ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, I installed a new package using the following command: installpkg -root /usr/local mozillafirefox-0.8-i686-1jim Then, I tried to uninstall it by: ROOT=/usr/local removepkg mozillafirefox-0.8-i686-1jim but instead of removing the package, I only get the following message from the removepkg: Removing package /usr/local/var/log/packages/mozillafirefox-0.8-i686-1jim... Removing files: and the program hangs till I kill it manually. Why is that? When I uninstall from the default root filesystem (/) it doesn't happens. ddtl. |
| |||
| On Wed, 21 Apr 2004 18:20:14 +0200, ddtl wrote: if you cant get it not to crash, try this: mkdir tmp mv ./mozilla-firefox-sommorefilename.tgz ./tmp/mozilla.tgz cd tmp tar vzxf mozilla.tgz somewhere in there should be a dir called something like install, in one of those files there is the remove script - run that yourself |
| |||
| >if you cant get it not to crash, try this: > >mkdir tmp >mv ./mozilla-firefox-sommorefilename.tgz ./tmp/mozilla.tgz >cd tmp >tar vzxf mozilla.tgz > >somewhere in there should be a dir called something like install, in one >of those files there is the remove script - run that yourself It surely the way to uninstall in such a case, but I would also like to get to the root of a problem and solve it there, so that I will be able to use removepkg instead of unconventional ways of package removal. ddtl. |
| |||
| On Wed, 21 Apr 2004 18:20:14 +0200, ddtl wrote: > I installed a new package using the following command: > > installpkg -root /usr/local mozillafirefox-0.8-i686-1jim Why? Do you understand what this does? > Then, I tried to uninstall it by: Did the package thus installed not work for you? Maybe it has some hard-coded pathnames, or it expects some libraries in relative paths to the $ROOT. > ROOT=/usr/local removepkg mozillafirefox-0.8-i686-1jim > > but instead of removing the package, I only get the following > message from the removepkg: > > Removing package /usr/local/var/log/packages/mozillafirefox-0.8-i686-1jim... > Removing files: > > and the program hangs till I kill it manually. removepkg is a shell script. Look in it. It calls a bunch of GNU utilities to do its work. Do you have those installed in proper places under /usr/local? Of course not. That's my guess what's wrong. It probably (and no, I did not bother to review the script myself) does a chroot to $ROOT, and thus expects to find a reasonably-complete install in $ROOT. -- /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net or put "not-spam" or "/dev/rob0" in Subject header to reply |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Don't have the OP's post on my news-server yet apparently. The following solution *should* work, but is not gauranteed. In alt.os.linux.slackware, /dev/rob0 dared to utter, >> installpkg -root /usr/local mozillafirefox-0.8-i686-1jim sed -i -e +usr+usr/local/usr+ /var/log/mozillafirefox-0.8-i686-1jim removepkg mozillafirefox-0.8-i686-1jim This of course assumes that all files for firefox are stored under the /usr directory. Slackware's mozilla package does this, but I have no idea if this third pary package does or not. The above should at least get you started. Note that is it NOT advised to go willy-nilly installing packages any damn where you please, as they often expect to find themselves in directories under the real $ROOT and not some arbitrary place on your filesystem. If you want firefox under /usr/local, compile it yourself. - -- It is better to hear the rebuke of the wise, Than for a man to hear the song of fools. Ecclesiastes 7:5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAhxNDL3KiNGOqr6ERApwzAJ9/GSpGB1+rxgDFQBrUEy8cyBaeeACeNFBo ekFrPmwow+bA7I2hVvKXKEo= =Y7+s -----END PGP SIGNATURE----- |
| ||||
| On Wed, 21 Apr 2004 19:35:26 -0500, Alan Hicks wrote: > Don't have the OP's post on my news-server yet apparently. The > following solution *should* work, but is not gauranteed. > > In alt.os.linux.slackware, /dev/rob0 dared to utter, >>> installpkg -root /usr/local mozillafirefox-0.8-i686-1jim > > sed -i -e +usr+usr/local/usr+ /var/log/mozillafirefox-0.8-i686-1jim > removepkg mozillafirefox-0.8-i686-1jim Hey, I think you're on to something, but you might have missed a step. How about you tack "usr/local/" onto the beginning of each line in the file /usr/local/var/log/packages/mozillafirefox-0.8-i686-1jim, using sed as illustrated, and then #v+ unset ROOT # for good measure mv /usr/local/var/log/packages/mozillafirefox-0.8-i686-1jim /var/log/packages removepkg mozillafirefox-0.8-i686-1jim #v- Now the file is in the standard $ROOT packages list with correct full paths, so removepkg will know what to do. The OP could help here by posting some snippets from that file, so we can see what paths are listed therein. I've never used installpkg with $ROOT or -root, so I'm not sure, but I bet the paths are relative to the $ROOT. -- /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net or put "not-spam" or "/dev/rob0" in Subject header to reply |