Re: dpkg package list
On Mon, Sep 7, 2009 at 10:44 PM, Wayne Topalinux...@gmail.com wrote: Hinko Kocevar wrote: Hi, Is it possible to remove packages with 'pn' and 'rn' from the 'dpkg -l' listing? # dpkg -l libera* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-===-===-== rn libera-gbeth none (no description available) pn libera-pll none (no description available) Sure is. You just have to read the dpkg | aptitude | apt-get man pages and look the the purge command. Right. I managed to get rid of the second line by issuing: # dpkg --forget-old-unavail But the first one changed status to (don't know for sure when): un libera-gbethnone (no description available) # dpkg -P libera-gbeth dpkg - warning: ignoring request to remove libera-gbeth which isn't installed. # dpkg --forget-old-unavail # dpkg -l libera-gbeth un libera-gbethnone (no description available) # dpkg --force-all -r libera-gbeth dpkg - warning: ignoring request to remove libera-gbeth which isn't installed. # dpkg -r libera-gbeth dpkg - warning: ignoring request to remove libera-gbeth which isn't installed. Thank you, HK -- .. the more I see the less I believe.., AE AoR -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
dpkg package list
Hi, Is it possible to remove packages with 'pn' and 'rn' from the 'dpkg -l' listing? # dpkg -l libera* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ NameVersion Description +++-===-===-== rn libera-gbethnone (no description available) pn libera-pll none (no description available) Best regards, Hinko -- .. the more I see the less I believe.., AE AoR -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
dpkg -i question
Hi, I've started using dpkg in the company I work for now. Before that I was not familiar with the tool. My question is in regard to the fact when/how are files installed in /etc/default when I run 'dpkg -i pkg.deb'. What I've observed is that missing or modified file in /etc/default is never installed or replaced, even when missing on the filesystem and present in the deb package. If file in /etc/default is missing it can be forced with 'dpkg --force-all -i pkg.deb', that works. This is not the case for eg. files placed in /opt/bin (the same package). I guess that there is a resonable explanatin for this and that is what I'm looking for. PS. I can provide more info about the package if needed and complete fail case. Thank you, Hinko -- .. the more I see the less I believe.., AE AoR -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: dpkg -i question
On Wed, Aug 5, 2009 at 9:54 AM, Sven Joachimsvenj...@gmx.de wrote: On 2009-08-05 09:38 +0200, Hinko Kocevar wrote: I've started using dpkg in the company I work for now. Before that I was not familiar with the tool. My question is in regard to the fact when/how are files installed in /etc/default when I run 'dpkg -i pkg.deb'. What I've observed is that missing or modified file in /etc/default is never installed or replaced, even when missing on the filesystem and present in the deb package. This is a feature, files below /etc shipped in packages are conffiles? that the sysadmin is free to modify and even delete. ?If you choose the latter, dpkg will not bring the files back on upgrades which would override your decision. Let me note that I was trying to reinstall the same version of the package. I guess this would behave differently if the package versions were different. Need to test this by myself... If file in /etc/default is missing it can be forced with 'dpkg --force-all -i pkg.deb', that works. Actually the option you want is --force-confmiss, --force-all is pretty dangerous. Ok. This is not the case for eg. files placed in /opt/bin (the same package). Because these files are not conffiles and do not get the same special treatment. That was my assumption also. Best regards, Hinko -- .. the more I see the less I believe.., AE AoR -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: dpkg -i question
Thanks go to Andrei and Sven for prompt response and helping me clearing this thing out! On Wed, Aug 5, 2009 at 9:38 AM, Hinko Kocevarhinkoce...@gmail.com wrote: Hi, I've started using dpkg in the company I work for now. Before that I was not familiar with the tool. My question is in regard to the fact when/how are files installed in /etc/default when I run 'dpkg -i pkg.deb'. What I've observed is that missing or modified file in /etc/default is never installed or replaced, even when missing on the filesystem and present in the deb package. If file in /etc/default is missing it can be forced with 'dpkg --force-all -i pkg.deb', that works. This is not the case for eg. files placed in /opt/bin (the same package). I guess that there is a resonable explanatin for this and that is what I'm looking for. PS. I can provide more info about the package if needed and complete fail case. Thank you, Hinko -- .. the more I see the less I believe.., AE AoR -- .. the more I see the less I believe.., AE AoR -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org