Solved

debian - installation based on a text file

Posted on 2012-04-03
3
208 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
Comment Utility
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
Comment Utility
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
Comment Utility
Here's a description to help you: http://www.debianadmin.com/clone-your-ubuntu-installation.html

Regards, Tobias
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now