On 25-Oct-2001 Craig Dickson wrote: > I want to write a bash script that will run through my > /var/cache/apt/archives directory and determine which ones are obsolete > (either not the latest release, or no longer available at all from the > standard Debian package repository). How can I tell which packages are > obsolete? > > The idea here is that I want to provide a Home for Lost Packages on my > web server, for the benefit of people who are trying to get gnucash or > other dependency-starved packages running. But I don't want to just make > /var/cache/apt/archives visible to the world; I only want to offer > packages that aren't available in the package repository, so that people > will only use my limited bandwidth when it's necessary. >
dselect has this ability. If you look at it and apt you should be able to come up with a solution.