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?

Share/Save/Bookmark


Posted by dom (163.1.xx.xx) on Fri 4 Mar 2005 at 12:08
[ Send Message ]
I couldn't find any good solution to this, so instead I wrote a hacky inefficient shell script.

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 ]

Posted by Anonymous (194.51.xx.xx) on Fri 4 Mar 2005 at 13:13
i think that
apt-get install apt-show-versions
can do the job.

[ Parent | Reply to this comment ]

Posted by Steve (212.20.xx.xx) on Fri 4 Mar 2005 at 13:26
[ 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 ]

Posted by Anonymous (194.51.xx.xx) on Fri 4 Mar 2005 at 16:15
I known that it does the job because when I switch to the testing distribution,
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 ]

Posted by Steve (82.41.xx.xx) on Fri 4 Mar 2005 at 16:18
[ 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 ]

Posted by Serge (213.119.xx.xx) on Fri 4 Mar 2005 at 18:04
[ Send Message | View Serge's Scratchpad | View Weblogs ]
As I didn't know this package,
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 ]

Posted by Steve (82.41.xx.xx) on Fri 4 Mar 2005 at 18:06
[ Send Message | View Steve's Scratchpad | View Weblogs ]

The best way is to look at the online testing-excuses script:

apt-proxy excuses.

Steve
-- Steve.org.uk

[ Parent | Reply to this comment ]

Posted by Anonymous (194.51.xx.xx) on Wed 23 Mar 2005 at 15:17
I’m back from vacation… Thanks for you response

Well I have a close look to the proxy and it doesn’t help me.
Probably because I have made a bad explanation of my issue.

There’s a LAN with 2 computers behind the same connexion (ADSL)

One (the server) is used as gateway and hold service
It’s 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 it’s 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 there’s 2 workstations but it’s not important)
there’s a lot of package on this computer.
Download time annoyed me so I don’t do it very often (hell! download time will grow higher)
I can’t cron it at night
I can’t background the download during I’m using the computer (lock, bandwidth lose …)

Any idea?

Leahpar

[ Parent | Reply to this comment ]

Posted by leahpar (194.51.xx.xx) on Wed 23 Mar 2005 at 15:35
[ Send Message ]
test purpose

[ Parent | Reply to this comment ]

Posted by gna (212.40.xx.xx) on Fri 4 Mar 2005 at 15:44
[ Send Message | View Weblogs ]
Thank you all.


apt-show-versions did what i wanted.

[ Parent | Reply to this comment ]

Posted by UP (24.148.xx.xx) on Tue 22 Mar 2005 at 08:01
[ Send Message ]
this apt-show-versions sure is a good command to know

I used it to clean up packages installed but no longer in the dist. (with my current sources)

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search