TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: KEES VAN EETEN
date: 2018-03-20 23:10:00
subject: Raspian Jessie and Stretc

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)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.