Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > need a list of installed packages
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-11-2005   #1 (permalink)
Just Joined!
 
Join Date: Aug 2005
Posts: 15
need a list of installed packages

Hey there,
i have a server that took me a long time to set up
soon we will be upgrading the hardware with a new computer.
is there a list of apt-installed packages anywhere i can print out or copy to a disk so i will know what all i will need to set the new box up just like this one?
thanks
nephish is offline  

Reply With Quote
Old 08-11-2005   #2 (permalink)
Super Moderantor
 
techieMoe's Avatar
 
Join Date: Aug 2004
Location: Texas
Posts: 9,148
I think perhaps
Code:
apt-show-versions
will do the trick.
__________________
Registered Linux user #270181
TechieMoe's Tech Rants
techieMoe is offline   Reply With Quote
Old 08-11-2005   #3 (permalink)
Linux Newbie
 
Join Date: Jul 2005
Location: ~/home
Posts: 105
Code:
dpkg -l
provides you with the full list of installed packages,
if you only want to know the names and put them in a txt file
Code:
dpkg- l | awk '{print $2}' > installed_packages.txt
if you install a new box, just install the base system without any packages (don't use tasksel and / or deslect) and run
Code:
apt-get install `cat installed_packages.txt`
__________________
Help me getting a Opera licence
Beginning with debian? -> read THIS!
alain_ is offline   Reply With Quote
Old 08-11-2005   #4 (permalink)
Linux Newbie
 
Join Date: Jul 2005
Location: Turn Around
Posts: 202
Send a message via AIM to DoctorDan
use this

Quote:
aptitude
then select "installed packages"

(note: white packages marked with an "i" are installed, while grey packages marked with a "p" are not installed.)
DoctorDan is offline   Reply With Quote
Old 08-12-2005   #5 (permalink)
Just Joined!
 
Join Date: Aug 2005
Posts: 15
Quote:
Originally Posted by alain_
Code:
dpkg -l
provides you with the full list of installed packages,
if you only want to know the names and put them in a txt file
Code:
dpkg- l | awk '{print $2}' > installed_packages.txt
if you install a new box, just install the base system without any packages (don't use tasksel and / or deslect) and run
Code:
apt-get install `cat installed_packages.txt`
worked like a charm. this is going to save me a ton of time when we do this.
thanks much
nephish is offline   Reply With Quote
Old 09-09-2006   #6 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 3
Thanks! I've been thinking about how I might do this for the past few days. This worked great.
Temujin_12 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 03:30 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2