LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-14-2015, 05:41 PM   #1
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Creating custom Slackware install iso questions


I am considering creating a personal custom install iso for my Slackware PC, to ease and trim the install process.
Basically I want to leave out some packages and integrate others.

I am currently using Alien Bob's mirror-slackware-current.sh script that is going to be my base.

From what I understand, I can remove packages and edit them out of the tagfiles.

Is it the same to add packages? Just edit them into the tagfiles?

Also, do I need to edit the FILELIST, PACKAGES, MANIFEST or anything else, or build it different than is done with mirror-slackware-current.sh?

Any tips are appreciated, a point to a tutorial would be nice.
Thanks in advance.
 
Old 01-15-2015, 11:00 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Hi Skaendo, welcome to this forum.

Here are a few links (easily found using a search engine):
link 1
link 2
link 3

No, do not edit FILELIST, PACKAGES, MANIFEST: these files are used by the Slackware packages management system and that would prevent it to work properly.
 
Old 01-15-2015, 12:51 PM   #3
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Original Poster
Rep: Reputation: Disabled
Thanks Didier Spaier.
I have read the last two, and the first one says the same as the slackbook and slackwiki.

I am looking to make a more customized disc image though, not just edit the tagfiles. I want to trim down the size of the image so that it could possibly fit onto a CD instead of a DVD, or at least a small USB stick (~1GB), that has only the packages that I want/use. For example I would completely remove the /slackware64/kdei/ folder, /slackware64/xfce/ folder, and the majority of single packages in various other folders that I don't want/use, and at the same time I want to add other packages that I do want/use.

Is it still just a matter of editing the tagfiles, while adding and removing packages, and rebuilding the iso?

Please bear with me, I am a Debian convert.

Last edited by Skaendo; 01-15-2015 at 01:56 PM.
 
Old 01-15-2015, 02:02 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
You could save you a lot of hassle in trying one of the Salix ISOs available here. Their sizes are indicated in the same page.

Me, I don't see a big advantage in trimming down the size of the image, as the media won't be significantly cheaper. Plus, bear in mind that Slackware is expected to be installed as a whole and does not provide automatic dependencies management, so you could have to learn the hard way which packages you miss and this is a time consuming process, see this about that. This document could also help you grasp the main differences between Debian and Slackware.

If you persevere in your initial idea, then yes, you could rebuild an ISO with the packages you want. Even if you don't use Salix then, shipping only part of the Slackware packages in each ISO leaded them to provide a list of Slackware packages' dependencies that could help you, see here for instance

Last edited by Didier Spaier; 01-15-2015 at 03:15 PM.
 
1 members found this post helpful.
Old 01-15-2015, 03:12 PM   #5
mlslk31
Member
 
Registered: Mar 2013
Location: Florida, USA
Distribution: Slackware, FreeBSD
Posts: 210

Rep: Reputation: 76
Not knowing about Alien Bob's script, I've taken a different path, perhaps a bad move. Basically, I've used the instructions in ftp://ftp.slackware.com/pub/slackwar...nux/README.TXT for help with creating the iso. The installer doesn't seem to care if many packages are gone. I've pared the slackware-current tree down until it fits in less than 700 MB, then the command line cited in README.TXT is used to make the iso. cdrecord is used to burn that iso.

Keep in mind, this is being lazy on purpose. Should a package be missing, a USB stick with a full slackware-current is on hand. The goal here is to get the basic system and kernel onto boat anchors with no USB boot and no Internet connection, then reference the rest of slackware-current as needed.
 
Old 01-15-2015, 03:58 PM   #6
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Original Poster
Rep: Reputation: Disabled
@Didier Spaier
I did consider Salix when I started to research OSs once I got fed up with Debian. But I would rather not have a "based" distro which is why I used Debian for 14+ years. I have tried a lot of "based" distros here and there and I have found that there are less issues with the "pure" distros.

I am not worried about the cost of media as I regularly use *-RW for testing/installing OSs. I am trying to speed up the install process and at the same time install extra packages and leave out packages. I guess that it doesn't matter if I can fit it on a CD, I just meant I want to reduce the size of the installation source as much as I can. Although, I would be very happy if I can get it on a 1GB USB drive, but that is hoping for a lot.

The list of Slackware packages' dependencies is right on. I was looking for something like that as well.

@mlslk31
So what your saying is that you didn't edit the tagfiles, and the installer just skipped the missing packages?

Last edited by Skaendo; 01-15-2015 at 04:04 PM.
 
Old 01-15-2015, 05:03 PM   #7
mlslk31
Member
 
Registered: Mar 2013
Location: Florida, USA
Distribution: Slackware, FreeBSD
Posts: 210

Rep: Reputation: 76
Not sure what happens. The best way of putting it is this: A missing package probably will not stop the install process. a/ is most important to keep, ap/ just behind it. Because both X11 and non-X11 libraries are kept in l/, the most space savings will be found in l/. 99 times out of 100, the tagfiles aren't touched. There's no point in having a uniform install for my PCs: The source will guide the PCs onto their own separate paths, anyway.
 
Old 01-16-2015, 12:23 AM   #8
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
What I usually do is use Alien Bob's mirror script and then copy the entire tree* (so I don't need to re-download things later).

Code:
mirror-slackware-current.sh -r 14.1 -o NONE
cp -r /home/ftp/pub/Linux/Slackware/slackware-14.1 /tmp/
In the copy I then delete all of the packages I don't want (do not delete any directories, just the files) and use the mirror script once more to create the ISOs from the copied tree.

Code:
mirror-slackware-current.sh -r 14.1 -i -l /tmp/ -o CDROM



* Actually my /home is on a BTRFS subvolume, so I just take a snapshot and restore things afterward (much faster than copying 5GB of data).

Last edited by saulgoode; 01-16-2015 at 01:15 PM.
 
2 members found this post helpful.
Old 01-16-2015, 04:01 AM   #9
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Original Poster
Rep: Reputation: Disabled
@saulgoode
Excellent method. I'm going to use that when I finish trimming and ready to build.

What about if there are no more packages in the directory, take /y/ for example since it only has bsd-games, could the install-packages, install.end, maketag, maketag.ez and tagfile files be deleted just leaving the empty directory?

Last edited by Skaendo; 01-16-2015 at 04:19 AM.
 
Old 01-16-2015, 08:25 AM   #10
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by Skaendo View Post
What about if there are no more packages in the directory, take /y/ for example since it only has bsd-games, could the install-packages, install.end, maketag, maketag.ez and tagfile files be deleted just leaving the empty directory?
Doing that is fine though if you don't have valid tagfiles then you are limited to using either "FULL" or "TERSE" prompt mode during setup (I've actually never tried using the other modes but it would seem logical that they'd fail). Using FULL or TERSE is the whole point of what you want to do anyway, right?

Last edited by saulgoode; 01-16-2015 at 08:28 AM.
 
1 members found this post helpful.
Old 01-16-2015, 10:59 AM   #11
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by saulgoode View Post
Doing that is fine though if you don't have valid tagfiles then you are limited to using either "FULL" or "TERSE" prompt mode during setup (I've actually never tried using the other modes but it would seem logical that they'd fail). Using FULL or TERSE is the whole point of what you want to do anyway, right?
Right, I just want to be able to hit full and have it set up with what I want in and what I don't out, "out of the box".
 
Old 01-19-2015, 12:22 PM   #12
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Original Poster
Rep: Reputation: Disabled
Thanks for all the help! I have a working image down to 1.2GB and still shrinking.
That's including LibreOffice, VLC and other added programs.

Last edited by Skaendo; 01-19-2015 at 01:56 PM.
 
Old 01-27-2015, 11:43 AM   #13
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Original Poster
Rep: Reputation: Disabled
Just an update.

I have gotten my install image down to 849MB.

That includes;
KDE, LibreOffice, Flashplayer-plugin, qbittorrent, VLC, WiFi, and more.

And I am still trimming packages..........
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Custom LiveOS ISO with Custom Files and RPMs niteshadw Red Hat 1 11-06-2012 10:44 AM
Creating a Custom ISO with Options metallica1973 Linux - General 4 07-04-2012 11:46 AM
Creating a Custom Install ISO from current system? shane25119 Linux - General 5 02-22-2009 09:46 PM
Creating a custom ISO image. xav.vijay Linux - Desktop 1 07-02-2007 11:02 AM
Creating a custom ISO using RHEL4 knarfling Linux - Server 3 08-18-2006 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration