Is there manual how to remove unnecessary stuff from Slackware?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there manual how to remove unnecessary stuff from Slackware?
I like to clean distro from different avahi, cups, wicd, networkmanager, speechdispatcher, mdadm, nfs-common and other services and packages.
Here in Slackware are many tools I won't ever use like cdrom, thunderbird, dovecot, kde.
I wish to know how to remove packages with dependencies.
Also I wish to change DM to Slim, because it is more lightweight as I think that native.
I also often use /etc/network/interfaces without networkmanager (with service networking), is it possible to use some other network service instead of NetworkManager? And how to manage services?
Sorry, I just started to read Slackware documentation only read its history, also I know its package manager does not work with dependencies... I still don't know how to control services here.
Alien Bob provides mini ISO installers that will give a you a bare minimum package set that you can boot from and then build up from there by downloading other packages you want with slackpkg. However this is not newbie friendly, so be warned if you try this.
I wish to know how to remove packages with dependencies.
The # pkgtool utility will allow you to remove any package you wish. However, as you've noted Slackware does not have a dependency tracking package manager so do take care with what you remove as you can break your installation.
Quote:
Originally Posted by youni
I still don't know how to control services here.
Services are activated in the /etc/rc.d directory. As an example I have nordvpn installed on my system. To make the service active I would invoke this at a root terminal prompt.
I like to clean distro from different avahi, cups, wicd, networkmanager, speechdispatcher, mdadm, nfs-common and other services and packages.
Here in Slackware are many tools I won't ever use like cdrom, thunderbird, dovecot, kde.
I wish to know how to remove packages with dependencies.
Also I wish to change DM to Slim, because it is more lightweight as I think that native.
I also often use /etc/network/interfaces without networkmanager (with service networking), is it possible to use some other network service instead of NetworkManager? And how to manage services?
Sorry, I just started to read Slackware documentation only read its history, also I know its package manager does not work with dependencies... I still don't know how to control services here.
From this post, I believe that Slackware is not the distro you are looking for.
Did you really want to resolve manually the package dependencies from Slackware? Or did you expect us to do that for you?
As a rookie, in Slackware you should install everything. Period.
Last edited by LuckyCyborg; 03-18-2023 at 11:43 AM.
As rookie, in Slackware you should install everything. Period.
Agreed. If you're new to Slackware it is recommended that you choose a full installation of Slackware. When you choose a full installation of Slackware everything works out of the box with all dependencies met. Here on LQ we prefer to offer technical support for full installations of Slackware. If you choose to customize your Slackware installation by removing packages it is assumed that you know what you're doing.
Also agree, Do I full install and learn the ropes and down the road if you want to try it you can start removing packages or download the mini iso I posted above and build up from there. Even veteran slackers can have a tough time when they start removing core packages.
"Unnecessary" packages in Slackware cost ONLY drive space. That's the only possible Downside. Having them in case they become needed is nothing but Upside. Unless you have limited drive space it's wise to keep everything. Unused packages use no other resources so won't affect perceived speed.
Actually that's not a bad idea for Youni to do.
A Slackware from scratch is very very appealing if setting up a hardened/minimal server or similar.
And from his post, appears he already knows what he wants to remove.
I'd recommend for OP to give it a go by first installing into a VM.
Once the install and dependencies have been worked out and documented, then move to a real physical device.
"Unnecessary" packages in Slackware cost ONLY drive space. That's the only possible Downside. Having them in case they become needed is nothing but Upside. Unless you have limited drive space it's wise to keep everything. Unused packages use no other resources so won't affect perceived speed.
Not only.. Some packages one might want to remove are those most frequently mentioned in "security issues", which are by many people not used at all, and which often are networked daemons (and pseudo/invisible daemons) of various types (including massive dbus stuff) which might expose the system more than you want.
Like, if you don't need AMPSS.. Or networking and/or unix port listening KDE stuff, or things like PIM.
There is no recommended or official way to remove unwanted packages. One reason I use Slackware is that although Pat provides a full operating system, he isn't a bully about using Slackware in any particular way. To me that is one of the features of Slackware and a credit to Pat's expertise and attitude.
To offer some reassurance about removing packages, I do not think I ever used a full install or a stock Slackware. From the beginnning of my using Slackware more than two decades ago I have been tweaking Slackware to my needs. Slackware tends to be designed to be quite flexible in this way.
That Slackware is not compiled with dependency checking hardly means that packages cannot be removed. I have been doing that for a couple of decades. When first starting down this road, removing packges requires some patience and reading some documentation. Not a steep hill to walk.
Because I actively remove packages I routinely self-check dependencies. A quick way to test is running the following command on all files in all directories in $PATH:
Code:
ldd $path/$bin_file | grep 'not found'
A shell script more easily runs that command.
With time, experience and knowledge grows about removing packages and the process no longer seems daunting.
I also occasionally recompile stock Slackware packages to my needs.
I have several test systems in the house network as well as several Slackware virtual machines. Normally I perform related package manipulations in those systems before I do the same in the production systems.
With respect to using slim, there is an SBo build script available.
With respect to /etc/network/interfaces, there is no such file in Slackware but probably what you seek is the equivalent /etc/rc.d/rc.inet1.conf.
With respect to managing services, there is a pkgtool option to manage some services. Mostly though all that is needed is knowing how to use the chmod command. All system service files are stored in /etc/rc.d.
Slackware is a flexible distro. Do not be afraid to experiment or tinker. Slackware is designed to be one of the few distros that provides lots of breathing room to do this. Using Slackware might require some nominal sweat equity but is not designed as a walled garden.
"Unnecessary" packages in Slackware cost ONLY drive space. That's the only possible Downside. Having them in case they become needed is nothing but Upside. Unless you have limited drive space it's wise to keep everything. Unused packages use no other resources so won't affect perceived speed.
Thank you. Actually having cheap SSD 120Gb with 4 partitions for different os, each 20Gb, need to save space. I've installed ncdu and found these heavy packages:
I will remove without any problems:
#du -hs /usr/lib64/{thunderbird,seamonkey}
234M /usr/lib64/thunderbird
149M /usr/lib64/seamonkey
Can I remove locale package (I use only one or two locales: EN_UST.UTF8 and may be C), also TexLive never used:
# du -hs /usr/share/{locale,texmf-dist}
1.2G /usr/share/locale
496M /usr/share/texmf-dist
I also do not need services:
samba speech-dispatcher nfsd cups dovecot httpd
Also I do not know if these services are running, and how to prevent their autostart on boot:
mysqld php-fpm
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.