On Tuesday 07 June 2005 11:37 am, Frans Pop wrote: > On Tuesday 07 June 2005 19:52, Daniel Burrows wrote: > > "aptitude hold" should work. aptitude's parsing of the dselect state > > has been buggy for a while, mainly because I don't use dselect much and > > the people who do use it don't seem interested in tracking bugs down > > and sending me a patch :P. > > Can packages that are on "hold" for aptitude be listed from the command > line _in Woody_? If so, how? > Is the same method valid for Sarge? > > I'd like to add that info in the Release Notes.
#216730 (or, "only in experimental") Actually, that's not quite true: searching for '~ahold' will show you a list of packages that are either "held" in a sticky way or are not going to be upgraded because they haven't been selected for upgrade; if you manipulate things a little you might be able to get a list of all held packages out of that. A simpler way might be this: LC_ALL=C egrep '^(Package|State|$)' /var/lib/aptitude/pkgstates | grep -B 1 -A 1 '^State: 2' | grep '^Package' | sed 's/^Package: //' That'll spit out a list of held packages, although for some odd reason it takes ages to run if your locale is UTF8. The LC_ALL=C is there because of bug #181378 and friends. Daniel -- /------------------- Daniel Burrows <[EMAIL PROTECTED]> ------------------\ | No-one remembers the singer. | | The song remains. | \------ Listener-supported public radio -- NPR -- http://www.npr.org -------/
pgpE5Nmge3qXC.pgp
Description: PGP signature