• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

debian - installation based on a text file

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
icongo
Asked:
icongo
  • 2
1 Solution
 
TobiasHolmCommented:
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
 
icongoAuthor Commented:
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
 
TobiasHolmCommented:
Here's a description to help you: http://www.debianadmin.com/clone-your-ubuntu-installation.html

Regards, Tobias
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now