Home > Debian, Howto, Linux, Ubuntu > Installing your selection of packages on Debian based systems

Installing your selection of packages on Debian based systems

September 2nd, 2007 Quail Leave a comment Go to comments

Consider: You have a host you like or at least its close too. You have another you would like to replicate the installed package set on.

APT – Is a front end to dselect and dpkg

Do this to functionally replicate it…
On you favorite host

$ dpkg –get-selections > myfavs.selections

file name is totally arbitrary

Check out the text file, it’s just a simple list with install / deinstall

Here is a snippet:

apt						install
apt-utils					install
aptitude					install
aspell						install
aspell-en					install
at						install

There is no header info or anything clever just a list.

Maybe you will need to copy your sources (and othe apt conf stuff) as well.? At least line up the repositories and levels.

Now transfer that file(s) to your (same distro) target unit. Save it somewhere you can read it. then: (with admin permissions)

# dpkg –set-selections < myfavs.selections

You can repeat the first get-selections if you want to check (diff -u) but next you do this:

# apt-get dselect-upgrade

Done.

It’s possible to convert a Debian box to an Ubuntu box this way and visa versa though its gunna break something…

Categories: Debian, Howto, Linux, Ubuntu Tags:
  1. November 27th, 2008 at 19:38 | #1

    Hello webmaster I like your post “home away from the nest » Installing your selection of packages on Debian based systems” so well that I like to ask you whether I should translate and linking back. Please give me an answer. Your Preiserh

  2. December 2nd, 2008 at 09:58 | #2

    np, you may translate and link back :-)

  1. No trackbacks yet.
-->

Bad Behavior has blocked 34 access attempts in the last 7 days.