LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-24-2009, 04:00 AM   #46
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272

Well, grep is used on the init and network scripts, so I cant do with out it.
bzip2 and diffutils are needed for slackpkg.
findutils I'm unsure... haven't found any major scripts with "find" or "xargs" in them.

The rest of them I'll remove (one by one) and see if it brakes stuff
If kernel-modules is not needed it would be great since it's a 15Mb (compressed!) package!

I'll keep you guys posted

Thanks for the tips
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-24-2009, 05:07 AM   #47
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
find is optional during startup -if present, it is used when looking for updated kernel modules. 155MB is still about 100MB too much -but your filesystem block size may be affecting the size too.
 
Old 09-27-2009, 03:16 PM   #48
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
OK, here is what was left after I removed some packages as gnashley suggested:
Code:
aaa_base-13.0-i486-2
aaa_elflibs-13.0-i486-2
aaa_terminfo-5.7-noarch-1
bash-3.1.017-i486-2
bin-11.1-i486-1
bzip2-1.0.5-i486-1
coreutils-7.4-i486-1
devs-2.3.1-noarch-25
dhcpcd-3.2.3-i486-1
dialog-1.1_20080819-i486-2
diffutils-2.8.1-i486-3
e2fsprogs-1.41.8-i486-1
etc-13.0-i486-2
findutils-4.4.2-i486-1
gawk-3.1.6-i486-1
glibc-solibs-2.9-i486-3
gnupg-1.4.9-i486-1
grep-2.5.4-i486-1
gzip-1.3.12-i486-1
iputils-s20070202-i486-2
kernel-huge-smp-2.6.29.6_smp-i686-2
kernel-modules-smp-2.6.29.6_smp-i686-2
logrotate-3.7.4-i486-1
module-init-tools-3.6-i486-2
net-tools-1.60-i486-2
network-scripts-13.0-noarch-2
openssh-5.2p1-i486-1
openssl-solibs-0.9.8k-i486-2
pkgtools-13.0-noarch-3
procps-3.2.7-i486-2
sed-4.1.5-i486-1
shadow-4.0.3-i486-18
slackpkg-2.80.2-noarch-3
sysklogd-1.4.1-i486-10
sysvinit-2.86-i486-6
sysvinit-functions-8.53-i486-2
sysvinit-scripts-1.2-noarch-30
tar-1.22-i486-2
udev-141-i486-3
util-linux-ng-2.14.2-i486-1
wget-1.11.4-i486-1
which-2.20-i486-1
xz-4.999.8beta-i486-1
Note1: The filesystem is ext2 and has a block size of 1024
Note2:
  • kernel-modules could not be removed --> lost network
  • procps could not be removed --> rc.d scripts need "ps" and "killall"
  • findutils could not be removed --> removepkg needs it

The grand total is 140Mb

Last edited by Slax-Dude; 09-27-2009 at 03:30 PM.
 
2 members found this post helpful.
Old 09-28-2009, 02:59 AM   #49
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Good list, the differences between 12.2 and 13.0 are quite small, my list allows you to compile and use sbopkg, and yours allows you only to use slackware packages, but that is cool because you would then be able to download the extra packages you need.

You have added four packages, iputils, openssh, sysvinit-functions and xz. I can see the definite need for xv, the probable need for sysvinit-functions, but you might be able to remove the other two, though this is just a guess as I haven't tried it.

You should be able to remove slackpkg as that only allows you to update your system and you can to that manually with wget.

I would add a boot loader or you will not be able to access your system on a fresh install, lilo ?

samac

Last edited by samac; 09-28-2009 at 03:03 AM.
 
Old 09-28-2009, 07:06 AM   #50
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by samac View Post
You have added four packages, iputils, openssh, sysvinit-functions and xz. I can see the definite need for xv, the probable need for sysvinit-functions, but you might be able to remove the other two, though this is just a guess as I haven't tried it.
I need iputils to have network (tools like ifconfig are in that package).
I also need to login remotely to add some packages or change some .conf files if needed, so openssh must be there as well.

Quote:
Originally Posted by samac View Post
You should be able to remove slackpkg as that only allows you to update your system and you can to that manually with wget.
Indeed I can, but since it's only 180Kb (uncompressed) and I love the simplicity of "slackpkg update" + "slackpkg install d" to get me a compiling machine like yours, I'll let it stay
I'll use wget for non-standard stuff like sbopkg

Quote:
Originally Posted by samac View Post
I would add a boot loader or you will not be able to access your system on a fresh install, lilo ?

samac
I usually install the bootloader (I prefer grub) during the installation process and not as a package on the newly created machine.
I mean: if I install 10 slackware systems into the same HD, they don't need all to have grub installed.
Like the slackware installer, I'll leave the bootloader as optional, as it may not be desirable to install it.

My goal is to build a sort of slackware-template that once installed could be easily expanded in to a full slackware installation or a custom slackware installation like a dedicated mysql server or a web server.

Whatever the final system may become, it would start with the same template.
 
Old 09-28-2009, 07:47 AM   #51
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Rep: Reputation: 33
Quote:
Originally Posted by Kowalczyk View Post
gnashley: in fear of being called a noob, I ask. What do I do / where do I read to find out what that does at startup? or what happens
I was asking myself this same question a few years ago and came across this page : Slackware : The boot process.. Not sure how up to date this will be now (Version 10 is mentioned, but I still look at it now and again to remind myself of what is going on with my various boxes (all now on Slack 12.1 or 12.2) at boot time. I find it nice and short and to the point.

Bogus
 
Old 10-03-2009, 02:19 AM   #52
Kowalczyk
Member
 
Registered: Jan 2008
Location: Norway
Distribution: Slackware
Posts: 57

Original Poster
Rep: Reputation: 21
Slax-Dude:

If I use your install. I get this error: No inittab file found.
Then it ask me what runlevel I want to boot

I type 3 and then it says: no more processes left in this runrevel.

You have probably forgot something
 
Old 10-03-2009, 03:04 AM   #53
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
That would be the sysvinit-scripts package.
 
Old 10-06-2009, 03:32 AM   #54
Kowalczyk
Member
 
Registered: Jan 2008
Location: Norway
Distribution: Slackware
Posts: 57

Original Poster
Rep: Reputation: 21
dont you need the kernel-firmware as well?

Ehhm.

I installed the packages just from A series
In the guide.
I also added Lilo to have a bootloader.
But Im still 276MB in use.

Why?

Is it because of ext4
Maybe I'll try ext3 and see what happens then

I tried ext2 with lilo and that gave me 149M
so Ext4 is a lot bigger

Last edited by Kowalczyk; 10-06-2009 at 04:11 AM.
 
Old 10-06-2009, 05:56 AM   #55
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Any journaling filesystem is going to add a lot to the size as expressed by disk usage utilitie.
 
Old 10-06-2009, 06:48 AM   #56
Kowalczyk
Member
 
Registered: Jan 2008
Location: Norway
Distribution: Slackware
Posts: 57

Original Poster
Rep: Reputation: 21
I get chroot cannot execute /usr/bin/passwd: no such file or directory. what packages includes that? I have etc,etc,sed,shadow
I cant figure out what package I forget to install.

This is under the install when I'm prompted to setup root password

Last edited by Kowalczyk; 10-06-2009 at 06:53 AM.
 
Old 10-06-2009, 07:07 AM   #57
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,060

Rep: Reputation: Disabled
Code:
bash-3.1$ grep "usr/bin/passwd" /var/log/packages/*
/var/log/packages/shadow-4.0.3-x86_64-18:usr/bin/passwd
bash-3.1$
HTH,
 
Old 10-06-2009, 07:54 AM   #58
Kowalczyk
Member
 
Registered: Jan 2008
Location: Norway
Distribution: Slackware
Posts: 57

Original Poster
Rep: Reputation: 21
I know. and I have selected shadow. but I still get that error. so I cant figure it out what else I am doing wrong.

http://dump.no/files/c89ed3154d9f/slackware.JPG
This is the most minimal I have managed.
that worked

the same with ext2 would be 149 mb.

so what can I remove there?
 
Old 10-06-2009, 08:10 AM   #59
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Remove aaa_elflibs to save a little space. It will also make your list more accurate -you may be running some programs which depend on libs which are included in aaa_elflibs but don't have the regular package for them installed. What I mean is this: aaa_elflibs contains duplicate single libraries which are each contained in some other package. if you really want to know which packages are essential for your purposes, removing aaa_elflibs will help you find that out, and it will eliminate other libs in there which you do not need.

I have a little tools here:
http://distro.ibiblio.org/pub/linux/...3-noarch-1.tgz
which will save you some space by removing unwanted language files. Even if you have not installed glibc-i18n, most packages install their own language files.

Another trick you can use, which Patrick used to do when building the zipslack distro, is to remove all header files under /usr/include and also all static libraries under /usr/lib

Code:
cd /
find usr/include -name "*.h" |xargs rm -f
find usr/lib -name "*.a" |xargs rm -f
Of course, this removes files while not removing them from the package database, so later removing/upgrading the packages will show error messages.
You'll also find there is lots of 'cruft' under /usr/doc...

The localepurge script above will remove several hundred MBs from a full install!
 
Old 10-06-2009, 08:11 AM   #60
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
pkgtools and dialog are not needed for the system to boot, they are for administration.

Maybe?

samac
 
  


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
Minimal X Install pxumsgdxpcvjm Slackware - Installation 1 11-18-2008 08:46 PM
Using Windowmaker in minimal install carcassonne SUSE / openSUSE 4 07-05-2006 06:21 PM
Minimal CD install help E.M.P99 Linux - Newbie 16 03-10-2006 02:57 PM
Minimal install AlberTUX Slackware 1 11-23-2005 01:55 AM
help with a minimal install mceachrw Amigo 6 09-22-2004 07:18 PM

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

All times are GMT -5. The time now is 03:10 AM.

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