New machine

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Van_Vinkle
Donor
Posts: 201
Joined: 25. Oct 2012, 17:39

New machine

Post 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.
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: New machine

Post 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
Image
Image
User avatar
Van_Vinkle
Donor
Posts: 201
Joined: 25. Oct 2012, 17:39

Re: New machine

Post by Van_Vinkle »

Your recipe worked very well.
You are a true wizard! :D
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: New machine

Post 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.
Image
Image
Post Reply