Solved

debian - installation based on a text file

Posted on 2012-04-03
3
213 Views
Last Modified: 2012-04-30
Good day,

I have a list of packaages that i want  on my machine.   I can use it with apt-get to install the packahges i want.

My question is.. How can i make sure only the packages from  this list are installed and remove any packages that are not on this list.

example:    dkpg --get-selections < file.txt,  dkpg -u dselect-upgrade #Will install the list of packages.

How can i make sure that all other packages are removed??


Thanks.
0
Comment
Question by:icongo
  • 2
3 Comments
 
LVL 18

Expert Comment

by:TobiasHolm
ID: 37806778
Hi!

The packages you've specified in the textfile are the ones that will be installed. Are more programs installed than the programs specified in the textfile?

Or do you want to remove unneccesary packages from the computer? Then you can use:
apt-get autoremove

Regards, Tobias
0
 

Author Comment

by:icongo
ID: 37816139
Basically, i have 2 machines with differetn packages installed.  Machine A and Machine B.

I want Machine B  to have the exact same packages as Machine A.
0
 
LVL 18

Accepted Solution

by:
TobiasHolm earned 500 total points
ID: 37904387
Here's a description to help you: http://www.debianadmin.com/clone-your-ubuntu-installation.html

Regards, Tobias
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question