Hello Martin!
20 Mar 18 19:17, you wrote to Tauno Voipio:
MG> Another approach is to write a script something like:
MG> ==========================================
MG> #!/bin/bash
MG> list=""
MG> list="$list package1"
MG> list="$list package2"
MG> sudo apt_get install $list
MG> ===========================================
MG> Keep this in your usual login directory and update it each time you add
MG> or remove packages. Then run it after a clean install.
MG> I've done this for years with Fedora Linux, though now it has a good,
MG> reliable version upgrade in situ process. But, being a belt and braces
MG> type, I still maintain the list on my Fedora boxes (though the command
MG> there is 'dnf install', so it was natural to do the same on my RPi.
If you want you get a list of installed packages on a debian like system.
use:
dpkg --get-selections > packages.list
Save the list somewhere, where it is safe.
On the new system do the reverse.
dpkg --set-selections < pakages.list
apt-get upgrade
should then install the packages that were aditionally installed on the
previous system.
If the apt-get upgrade does not install the packages from the list,
google for examples with "dkpg --get-selections"
Kees
--- GoldED+/LNX 1.1.5
* Origin: As for me, all I know is that, I know nothing. (2:280/5003.4)
|