Re: How safely to stop using backports repo?
sthu.d...@gmail.com wrote: Is there a automatic way that can give me a list of the packages came from backports repo? Install grep-dctrl and do $ grep-status -F Version ~bpo -a -F Status installed -s Package It will print the list of installed packages which have ~bpo in their names -- a common substring usually found in packages from backports.org. -- To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How safely to stop using backports repo?
On Wed, May 27, 2009 at 11:20 AM, sthu.d...@gmail.com wrote: Good day, MARGUERIE. Thank You for Your reply: Otherwise, you can `apt-get remove` them (plus --purge if you want to reset your configuration files) and re-install them : that way you'll use the main-repo version and you won't want have security problems anymore. That decision I feared... Is there a automatic way that can give me a list of the packages came from backports repo? Not automatic, but here is a quick script that might help you along: #!/bin/sh for pkg in `dpkg -l | awk '{print $2}'|sort` ; do if apt-cache policy $pkg | grep www.backports.org /dev/null ; then echo $pkgappears to be from www.backports.org fi done -Jeff
Re: How safely to stop using backports repo?
On 2009-05-28, JeffD jeff.dicki...@gmail.com wrote: Not automatic, but here is a quick script that might help you along: #!/bin/sh for pkg in `dpkg -l | awk '{print $2}'|sort` ; do if apt-cache policy $pkg | grep www.backports.org /dev/null ; then echo $pkgappears to be from www.backports.org fi done I don't think that can work, unless you make it something like: apt-cache policy $pkg | grep -A 1 -E '^ \*\*\*' | grep www.backports.org to make sure www.backports.org actually qualifies the *installed* version ? Cheers, --Seb -- To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How safely to stop using backports repo?
On Thu, May 28, 2009 at 01:20:25AM +0700, sthu.d...@gmail.com wrote: Thank You for Your reply: Otherwise, you can `apt-get remove` them (plus --purge if you want to reset your configuration files) and re-install them : that way you'll use the main-repo version and you won't want have security problems anymore. That decision I feared... Is there a automatic way that can give me a list of the packages came from backports repo? Give stable a priority 1000 in /etc/apt/preferences and do an upgrade in apt-get or aptitude or ... It will downgrade all packages that have a version newer than in stable. Not completely guaranteed to work (downgrades are not officially supported), but often works OK. -- Lionel -- To UNSUBSCRIBE, email to debian-security-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org