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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page need a list of installed packages
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 08-11-2005   #1 (permalink)
nephish
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)
techieMoe
Super Moderator
 
techieMoe's Avatar
 
Join Date: Aug 2004
Location: Texas
Posts: 8,604
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)
alain_
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)
DoctorDan
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)
nephish
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)
Temujin_12
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




All times are GMT. The time now is 03:52 PM.




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

Content Relevant URLs by vBSEO 3.0.0