LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-22-2011, 09:14 AM   #1
tranduyhung
LQ Newbie
 
Registered: Sep 2010
Location: Vietnam
Distribution: Debian, Lubuntu
Posts: 10

Rep: Reputation: 0
What program to list all installed packages in a text file and compare 2 lists


Hello,

I need to get names of all installed packages in 2 machines and save them in 2 text files, then I want to compare these 2 files to know the differences between 2 files and from that I could know the differences between 2 machines.

Is it possible to do that and what program I could use?

Thank you!

Regards,
Hung
 
Old 02-22-2011, 10:08 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,631

Rep: Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519
Is this Debian or a Debian-based system, or a RedHat-based distro ?????

Assuming Debian/Ubuntu like your profile says:

Code:
dpkg --get-selections | grep "[^e]install" > /tmp/pkgs.txt
or, for more details:
Code:
dpkg -l | grep ^ii > /tmp/pkgdetail.txt
Run one of those on both. Then transfer one of the files over and use "diff file1 file2" to compare the two files.
 
1 members found this post helpful.
Old 02-23-2011, 06:37 AM   #3
tranduyhung
LQ Newbie
 
Registered: Sep 2010
Location: Vietnam
Distribution: Debian, Lubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you AlucardZero .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
software to compare/merge text file ufmale Linux - Software 2 09-30-2009 02:40 PM
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
Slack-11: script lists installed pkgs, out-of-tree packages, compares versions... GrapefruiTgirl Slackware 0 06-18-2009 12:23 AM
LXer: Record Installed .deb Packages In A Text File (Ubuntu/Debian) LXer Syndicated Linux News 0 03-13-2009 05:30 PM
Is there a file that lists all installed packages in Ubuntu Gethyn Linux - Software 8 11-03-2007 09:58 AM


All times are GMT -5. The time now is 05:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration