how-to restore your packages with dselect

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

how-to restore your packages with dselect

#1 Post by labbe5 »

You may feel helpless when you want to install your prefered Dog OS on another desktop or laptop and you don't know how to install same selection of packages, manually adding each and every app you need on a basic install is taking a lot of time. Dog (Debian and Ubuntu) users have a tool to restore packages easily.

You need to apt install dselect, because you need it to restore your packages.

First, you create a list of all installed packages :
$ sudo dpkg --get-selections > /tmp/dpkglist.txt

Then, to restore packages, you use this package list on another laptop or desktop (same OS, same version of OS) :
copy your backed up dpkglist.txt file to your fresh system's /tmp directory again and execute the following:
$ sudo dpkg --set-selections < /tmp/dpkglist.txt
$ sudo apt-get -y update
$ sudo apt-get dselect-upgrade

Operation invalid. Deprecated. Look for Source 2 (February 5, 2017).

Source 1 : http://kvz.io/blog/2007/08/03/restore-p ... ctupgrade/

Source 2 : https://www.cyberciti.biz/faq/how-to-li ... an-ubuntu/

Note :
dselect is deprecated,
Source 2 is up to date with its information. Keep in mind that both source OS and target OS must be the same OS, and same version of OS, the target being a basic install.
Aptik is worth investigating, but its needs a PPA.
Last edited by labbe5 on Wed 09 Aug 2017, 20:29, edited 1 time in total.

backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#2 Post by backi »

Hi labbe !
Did not know this existed ........good to know :
Thanks man !

Post Reply