LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2008, 12:40 PM   #1
bluehaze
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Rep: Reputation: 0
Cool Debian apt-get install question


First off hello.. i just joined and looking forward to perusing this forum for quite some time. I myself an a newbie at linux but look forward to it.


Question: I am creating a fresh install of Debian etch lets call this debian2. my company has another computer running debian etch as well lets call it debian 1. I use dpkg -l to get the list of all programs installed in debian 1 and debian 2. i then place those files in a folder together and run :diff -b debian1 debian2 > diff.list

Ok so that diff.list shows many many programs missing on the debian 2 fresh install that is on the debian1 old install. Which makes sense. I want to make sure that debian2 fresh install has all of the same programs installed onto it as debian 1.

Now.. here is where i am trying to get creative. Because the diff.list shows so many programs that needs to be installed to debian2. I dont want to sit here and type every single program :apt-get install <name of program>. I could do that.. but this is linux there is always another way to do this.

My ideal is : apt-get install <name of list that has all the programs i want it to install>

So to sum it up.. is this possible for apt-get? When i did man apt-get i didnt see anything from what i was describing above except --diff-only but i think this is something else entirely.

Hope i get some reply's.
 
Old 09-17-2008, 12:45 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Have a look at dselect, and the --get-selections option. That might help..here's an example of how you may use it.
 
Old 09-18-2008, 12:38 PM   #3
bluehaze
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you so much.. that was exactly what i was looking for.
 
  


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
Question about 'apt-get upgrade' versus 'apt-get install' eur0dad Red Hat 8 07-16-2006 05:41 PM
apt-get question in debian dunkyb Linux - Software 4 02-01-2005 03:10 PM
Debian apt-get question moly82 Debian 17 11-21-2004 05:38 PM
Libranet Debian apt question craigdolson Debian 3 12-17-2003 08:19 PM
Debian apt question? augamecock Linux - Distributions 2 04-07-2002 08:05 AM


All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration