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.
http://www.slackware.com/~alien/slackboot/mini/ |
Quote:
Quote:
Code:
# chmod +x /etc/rc.d/rc.nordvpn |
Quote:
Did you really want to resolve manually the package dependencies from Slackware? Or did you expect us to do that for you? :D As a rookie, in Slackware you should install everything. Period. |
Quote:
|
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.
|
hi youni,
as this is a pretty common question, ruario wrote something about it on his blog some time ago https://docs.slackware.com/slackware..._off_slackware |
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. |
Quote:
Like, if you don't need AMPSS.. Or networking and/or unix port listening KDE stuff, or things like PIM. |
I do like it leaner, so i 'removepkg' applications i never use or for which i'm using alternatives. Following is my personal uninstall list in 15.0:
Warnings! Quote:
|
Hi youni,
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' 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. I hope this helps! |
Quote:
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 |
Quote:
Code:
# ls -la /etc/rc.d/ http://www.slackware.com/config/init.php Good luck with it. |
Quote:
Quote:
Quote:
chmod -x /etc/rc.d/rc.mysqld /etc/rc.d/rc.php-fpm stop chmod -x /etc/rc.d/rc.php-fpm I hope that helps. |
All times are GMT -5. The time now is 06:45 PM. |