Solved

debian - installation based on a text file

Posted on 2012-04-03
3
211 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

831 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