Page 1 of 1

New machine

Posted: 16. Sep 2024, 16:20
by Van_Vinkle
I will buy a new desktop, and I want to install Salix. I'd like to do a duplicate of my installation in my old machine, i.e. to have all the packets which are in the ISO and the ones that I've installed.

I know the order spkg -l. This give all the programs installed, but I'd prefer to know only the ones that I've installed for get them after the installation of ISO. I know also a script of Alien Bob which, theoretically, lists that I want, but this script does not run well:

Code: Select all

# ./tagfile_generator.sh
Slackware source '/home/ftp/pub/Linux/Slackware/slackware-current/slackware' does not exist!
And I rest stuck.

Thanks in advance.

Re: New machine

Posted: 16. Sep 2024, 19:10
by gapan
Something like this?

Code: Select all

spkg -l | sed "s/\(.*\)-\(.*\)-\(.*\)-\(.*\)/\1/" > INSTALLED
git clone https://github.com/gapan/iso-creation.git
cat iso-creation/lists-xfce/* > ISO
diff -Naur ISO INSTALLED |grep "^\+"|sed "s/^\+//" > ADDED

Re: New machine

Posted: 17. Sep 2024, 10:01
by Van_Vinkle
Your recipe worked very well.
You are a true wizard! :D

Re: New machine

Posted: 17. Sep 2024, 10:23
by gapan
Having a second look, it's better to sort all iso packages, so instead of cat, use sort in the 3rd line:

Code: Select all

spkg -l | sed "s/\(.*\)-\(.*\)-\(.*\)-\(.*\)/\1/" > INSTALLED
git clone https://github.com/gapan/iso-creation.git
sort iso-creation/lists-xfce/* > ISO
diff -Naur ISO INSTALLED |grep "^\+"|sed "s/^\+//" > ADDED
The output of spkg should be already sorted anyway.