New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

Your preferred Interactive shell?









( 1387 votes ~ 15 comments )

 

Weblog entry #3 for jeremiah

List of installed packages
Posted by jeremiah on Wed 12 Nov 2008 at 12:06
Tags: none.
15 11 * * * /usr/bin/dpkg --get-selections > /home/jeremiah/installed_packages.txt

I use the above crontab to get a fresh list of installed packages.

 

Comments on this Entry

Posted by Alucard (71.184.xx.xx) on Thu 13 Nov 2008 at 00:32
[ Send Message | View Weblogs ]
And I use it as part of my backup script. For later restoration with dpkg --set-selections.

[ Parent | Reply to this comment ]

Posted by Anonymous (83.248.xx.xx) on Thu 13 Nov 2008 at 17:00
Hmm, cool. I will have to check out --set-selections, I've never seen it before.

[ Parent | Reply to this comment ]

Posted by rak (200.40.xx.xx) on Tue 18 Nov 2008 at 20:23
[ Send Message | View Weblogs ]
Is there a verify option like the rpm -V ?

Cheers,

[ Parent | Reply to this comment ]

Posted by jeremiah (83.248.xx.xx) on Tue 18 Nov 2008 at 22:25
[ Send Message | View Weblogs ]
Short answer: No.

Long answer: My understanding is that rpm -V "verifies" the rpm database. dpkg uses a flat file for a database; /var/lib/dpkg/available, so there is not the same need to verify a database for corruption in the same way as with rpm.

[ Parent | Reply to this comment ]

Posted by rak (190.134.xx.xx) on Wed 19 Nov 2008 at 19:09
[ Send Message | View Weblogs ]
Actually rpm -V verifies the files of the package in question, and report whether they change or not. I was wondering if such a functionality would be available in debian dpkg.

[ Parent | Reply to this comment ]

Posted by jeremiah (83.248.xx.xx) on Thu 20 Nov 2008 at 18:26
[ Send Message | View Weblogs ]
What type of changes are you referring to? If they have been updated?

Or if the md5sums changed? Because that type of information is available in the .dsc file that gets uploaded with the package. All debs have a special version number as well - the version number of the upstream software, plus a number followed by a "-". So a deb usually has a version like this: libfoo-perl_1.01-1 with the last two characters (-1) being the version number of the deb package.

It is generally left to the higher level packaging tools like atp-get and aptitude to do the version number and signature checking, dpkg keeps track of the packages on the local system.

The entire package handling system is a toolset, the sum of its parts being more powerful than just rpm or yum for example.

[ Parent | Reply to this comment ]

 

 

Flattr