Question: List of installed packages in mixed environment
Posted by gna on Thu 3 Mar 2005 at 22:57
I unfortunately use on my system a mixture of Woody/Sarge packages. Now i need to have a list of all packages, where i can see which package belogs to Woody and which to Sarge.
Any suggestions how i could get this list?
http://www.larted.org.uk/~dom/computing/code/policy-all.sh
First you'd want to get a list of which packages are neither woody nor sarge, so set IGNOREPATTERN to
(yourmirror sarge|yourmirror woody|security.debian.org)
Then set IGNOREPATTERN to each in turn of
(yourmirror sarge|security.debian.org sarge)
(yourmirror woody|security.debian.org woody)
and so on.
You may need to replace "sarge" and "woody" with "testing" and "stable" if that's what your sources.list refers to.
I'd be interested in a better solution...
[ Parent | Reply to this comment ]
apt-get install apt-show-versions
can do the job.
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
That's right apt-show-versions will show exactly which packages are installed from each distribution.
It's a shame that Apt can't tell you this information itself, but even grep-dctrl doesn't seem to list the distribution a package comes from..
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
I can see that some package are still in stable (apt preference is set to testing but I haven't remove stable from my source.list)
Well, I have a small question :
I have a server (up for long time) which can perform apt upgrade easily
and a workstation (up for short time)where apt upgrade are very painfull (download too long)
Both are running the same distribution but do not have the same package at all (gui for exemple).
How can I download the workstation package from the server when the workstation is down?
I'm just starting with this issue and i search ways to do it
share the apt cache folder of the server
use dpkg get and set-selections
launch apt-get -d -y dist-upgrade -o ... and change sourcelist and cache folder
I have read the article dealing with repository but ... I haven't installed all the package ;)
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
THe easiest way is to copy the files from the machine with good connectivity to the other, just copy the .deb files from /var/cache/apt/packages.
Of course using the first machine as a proxy will be a simpler solution as it doesn't require the manual copy each time.
Investigate the apt-proxy package..
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
[ Send Message | View Serge's Scratchpad | View Weblogs ]
Investigate the apt-proxy package..
I did investigate it.
It might be important to note that it does not seem to be available in Sarge atm. Small side question: what is the best way to learn why it is not available?
--
Serge van Ginderachter
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
The best way is to look at the online testing-excuses script:
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
Well I have a close look to the proxy and it doesnt help me.
Probably because I have made a bad explanation of my issue.
Theres a LAN with 2 computers behind the same connexion (ADSL)
One (the server) is used as gateway and hold service
Its always online. And I put a cron like apt-get update && apt-get dist-upgrade d y
Apt runs when I sleep (no matter if its fast or not) so when I want to upgrade, all the download are already made => upgrade without any delay. Everyday if I want.
The other, is a workstation switched on a few hours a day
(to be honest theres 2 workstations but its not important)
theres a lot of package on this computer.
Download time annoyed me so I dont do it very often (hell! download time will grow higher)
I cant cron it at night
I cant background the download during Im using the computer (lock, bandwidth lose )
Any idea?
Leahpar
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
apt-show-versions did what i wanted.
[ Parent | Reply to this comment ]
I used it to clean up packages installed but no longer in the dist. (with my current sources)
[ Parent | Reply to this comment ]