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. |
1 Attachment(s)
Quote:
Next has broken my system. Some Xfce4 functions do not work after this Code:
#remove heavy packages: Code:
#do not remove Code:
#now xfce4 does not work |
Please, advice something to restore Xfce4? Some applets work like time, networkmanager. And all others do not work like windows, applications, launchers. also xfcse4-screenshot does not react on printscreen.[/QUOTE]
I tried to run screenshooter and got error: Code:
xfce4-screenshooter |
try
Code:
slackpkg update;slackpkg upgrade-all |
Here's a previous post how to use slackpkg templates to achieve a minimal system with fluxbox/fvwm window managers of size 4.5G
slackpkg templates fluxbox/fvwm After applying the templates if you want to add the xfce window manager just uncomment a mirror in /etc/slackpkg/mirror and run Code:
slackpkg update gpg sbopkg has these dependencies (install using slackpkg) Code:
slackpkg install rsync lz4 xxHash curl Code:
cd Downloads To be able to compile slim you will need these packages from the "D" series (install using slackpkg) Code:
slackpkg install autoconf automake binutils bison dev86 flex gcc gcc-g++ gettext-tools kernel-headers libtool llvm m4 make parallel perl strace Note for static and dhcp you will have to provide a DNS name server address in /etc/resolv.conf such as: nameserver 8.8.8.8 nameserver 8.8.4.4 The following dependencies apply: firefox since 104 requires the wayland and libXtst packages firefox requires these packages to play reddit and youtube videos opus opus-tools opusfile libopusenc lame ffmpeg ocl-icd libtheora libvpx speex libwebp openjpeg geeqie requires ffmpegthumbnailer irssi requires utf8proc hexchat requires gtk+ gtk+2 gtk+3 gtk4 libcanberra 'alsamixer' sound configuration requires alsa-lib alsa-oss alsa-plugins alsa-utils orc speexdsp slackpkg and slackpkg++ require gnupg, ca-certificates, perl, openssl-solibs openssl If any program fails to run because of a missing library just run it in terminal the output will provide the library name you can use "slackpkg file-search <library name>" to obtain the name of the missing package that needs to be installed. |
Quote:
Quote:
|
Quote:
Code:
upgradepkg --install-new /slackware64/xfce/*.txz |
Quote:
Kubuntu do the trick too. |
Quote:
I for one I will recommend: Code:
upgradepkg --install-new --reinstall /slackware64/*/*.txz |
@LuckyCyborg
You are a smart person and possess skills and knowledge. At times you have contributed useful information in this forum. Yet once upon a time you too were a noob. You did not gain those skills and experience without stubbing toes and making mistakes. Just about every single person in this forum has experienced learning episodes like those now being shared by the OP. This is how people learn. OP is being patient and is trying to learn something about Slackware. You act as though because you have grown beyond noob status that you have standing to belittle and berate people who lack similar skills and knowledge. Such an attitude is not needed in this forum. Slackware is these days a niche distro and needs helpful people and not the opposite. Please leave the pompous soap box aside and try to teach and help or say nothing at all. Quote:
The command I provided the OP is a starting point. Since the OP is wanting to learn how to remove unwanted packages, the command will resolve most and possibly all of the missing Xfce packages. Some packages that reside in the l set of packages might be missing but OP's list of removed packages does not seem to include any. |
Quote:
Slackware, like any collection of software, HAS software dependencies and they aren't described ANYWHERE. This transform Slackware in a beast really hard to tame regarding packages customization. Additionally, there's NOT the friendly big brother apt-get or zypper to tell you that you can't remove a particular package. Quote:
So, you can't use them as "dependency resolution" because they aren't supposed to be used this way. And trust me that they can't be used this way. ;) |
Quote:
The way you continually belittle and berate people is growing old. Quote:
|
Quote:
Downloaded all txz from here https://mirrors.slackware.com/slackw...ckware64/xfce/ And installed with Code:
upgradepkg --install-new --reinstall /home/user/Downloads/*.txz It was mistake to remove Greybird. It was a mistake to remove xfce4 components xfce4-panel-profiles xfce4-screensaver xfce4-whiskermenu-plugin xfce4-clipman-plugin xfce4-dev-tools xfce4-weather-plugin But may be Slackware has no strength dependencies on those components? |
size of Slackware
I am not figuring out how to count how heavy my slackware is?
Code:
# mount | grep sda Code:
du -sh /usr |
Quote:
Quote:
Quote:
Because of this lack of automated resolution checking, the common advice for new Slackware users is to perform a full install. This is cautious advice, but if the user is sufficiently experienced and skilled with computers then removing packages is not difficult. Just use some common sense and add some willingness to learn. I have many times removed packages in a test environment just to see what breaks and I have learned from that. Quote:
Quote:
At this point you restored your system and also removed unwanted packages. Time to step outside and if possible, enjoy the sun setting. :) |
Quote:
As experienced people like @LuckyCyborg, @hitest, @Daedra, @enorbet and @ponce have recommended, probably the easiest and simplest for you is to do a full installation. After all, there is no glory in using a partial installation. If you really want a minimalist Slackware installation, with only an XFCE desktop and essential applications, probably the simplest is to install a LiveSlak XFCE created by Mr. Hameleers. https://download.liveslak.org/1.6.0/...ce-current.iso This system has about 2.5GB installed, and after updates it reaches about 3.5GB, but be warned that there are many things you cannot do with it. |
Quote:
But that does not mean that he is a malevolent person. On the contrary, as far as I know him, he did a lot for Slackware and Slackers without having any personal interest. So please be kind to be easier with the labels. If you don't like the way he talks, just don't answer him. |
1 Attachment(s)
Quote:
|
@ZhaoLin1457
Points taken, thank you. I do not believe I wrote that LuckyCyborg is malevolent and even commented that he is skilled and knowledgeable. The Slackware change logs note his technical contributions. I apologize if I insinuated otherwise. There is the old adage about only getting one chance to provide a first impression. New comers to the Slackware forum seek help rather than snarky replies. People do not like having their intelligence and motives challenged. Especially when many new comers are not native English speakers. Helping and patience creates a positive impression. Answer the person's question rather than judging or jumping a soap box. Slackware is not exactly a favored distro these days. Positive first impressions and actually helping people might improve that status. Treating people with dignity and respect is not a difficult skill to learn, regardless of what culture a person lives. I have been online for a very long time and am well aware of language challenges. More than a few of LuckyCyborg's posts have nothing to do with cultural differences. |
Quote:
Code:
root@slack:~# ./howbig.sh BASE |
Quote:
Quote:
It might also be worth noting that removing some of the original Slackware packages might not only break other original Slackware packages. When installing software from third party providers like slackbuilds.org it is assumed that you have a full install of Slackware. You will need to consider if the disk space saved by removing packages is worth the time you will need to spend tracing down why things go wrong. An installation with some packages removed will be a non-standard installation. It will also make it harder for you to get help at forums like this when you report something like "Application Y does not seem to work" and only get replies like "works fine here". Many years ago, at my first installation of Slackware, during the installation process I carefully selected the packages I would need. Among those packages that I didn't select was a package named groff intended for formatting text. As I would not be working with text formatting but programming my choice was easy to not install that package. It then turned out that I got a system where I couldn't read any man-pages. Since then I have always made full Slackware installations. regards Henrik |
Quote:
Try this, instead, to see the size of your Slackware install: Code:
df -h / Quote:
|
Quote:
Code:
$ cd /var/adm/packages |
It's all about your needs and preferences.
As others have pointed out already, removing stuff from a full install might lead to nasty surprises due to slackware's lack of dependency management. But there are a few huge packages (or groups of packages) that in my experience can be removed without disastrous dependency issues: Petri Kaukasoina has already mentioned kernel-source (1.3 GB installed). Some programs are dependent on rust for compiling, but if you don't need it, rust takes up almost 1 GB. Texlive is another space consumer (>400 MB). And of course everything KDE related. There are a few packages in the xap section that can be removed without creating serious issues, e.g. Firefox, Thunderbird, Seamonkey, Gimp. Even so, a 20 GB partition is on the small side. If you do compiling, you might sometimes need a few GB of /tmp files with the risk of running out of space. Replacing your HDD/SSD or adding another with more space might be the best option if you really want to keep four or more OSs running. |
Quote:
Mine is fat :D Code:
BASE SYSTEM: |
If you paid yourself $3 an hour when fidling with your OS, you could hours ago have bought a nice 250GB second-hand SSD...
20GB is only asking for trouble later on... |
Quote:
a brand new 250GB SSD costs 20$ ... |
@youni
You could try Salix. https://www.salixos.org/ P.S. Code:
BASE SYSTEM: Code:
brian@slackdesk:~$ df -h / |
A clean install of Slackware 15.0 doesn't take up a lot of space, probably 10-20 GB on your SSD. Select XFCE during the installation process. It is a benefit to have the KDE applications, such as K3B and okular.
|
My Slackware-15 root partition contains 13G with 7.2G in /usr. Yes, it took me quite a bit of work to get there but, as a retired person, I have plenty of time to get things just the way I like them. Slackware-14 took up only 12G, but there are quite a lot more dependencies in -15.
I don't know though if it can be done by working down from a full install. I tried that once with Ubuntu, which does have dependency checking, and it was a disaster. I found it easier to work upwards from zero with -14.2, then copied that setup to -15.0 and added whatever was needed to make everything work. |
Install a/ ap/ d/ l/ n/ x/ xap/ xfce/ subtract out seamonkey and thunderbird, if they are useless to you (maybe you only use webmail client for email and are happy with it). Add k/ if you need to compile drivers that require it (famously and commonly nvidia, but there are others) or want to tweak your kernel config. Add f/ if you will be offline and want extra help pages offline. Mostly this should work. Notably you will have no office suite, but could easily add libreoffice from alienbob to get that back. There are many other nice to have apps in kde, but many people use none of them.
|
RE: Quote:
Originally Posted by enorbet View Post "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. Quote:
cost from $17 USD to about $35 USD, at least from common US sources, I don't imagine such an expense isn't worth the freedom and future-proofing double the drive real estate provides. If you have security concerns as someone mentioned it is possible to turn off the executable bit and of the parent and still keep the libraries. A decent firewall, kernel updates, and good online practice should reduce such concerns rather dramatically IF they were any serious attack vector at all to begin with. Quote:
|
Quote:
Sorry for causing the problem, but yes, since i'm using plasma the xfce dependencies were on my list. You could have restored the xfce online using 'slackpkg' too, as has been mentioned earlier in this thread. There're nothing in the slackware preventing an user to remove anything - you could uninstall even 'removepkg' or a running kernel making the system unbootable. Even then, you could restore it by booting with slackware setup disk, which have brief instructions on its boot screens howto boot or chroot into existing system. I'm thankful for all expert advice here in this forum, being nowhere 'expert' myself. Happy slacking! |
Quote:
But I often read here "need to use full install, otherwise things go bad". Sorry, this is not fundamental and such idea costs nothing. Slackware has disadvantage - it is not responsible of packages dependencies, it forces users to build systems by their selves. But it is wrong to say that full installation is obligatory. Slackware does not obliges users to use full installation. I am not agree with such a mantra "full installation is the only way". The real conception of Slackware is that it chooses stable versions of packages and offers proven sets of tools and applications that will never interfer or collide. You may construct your own workspace with this proven base. You may extend system in any direction: programming, devopsing, running web-server, data server, creating media, design, office work. So, newbie sniffs from full installation, but then it is logical to learn how to cunstruct own workspace, optimize system for own needs. I would like to have clean distro that works quickly, boots quickly, gives me Desktop Environment as soon as possible. Also is lightweight . |
Quote:
Code:
|
Just my two pence worth but if you are interested install Salix OS in a VM and see what packages they have, look through the configuration files and see if you can learn anything that way.
|
All times are GMT -5. The time now is 07:35 AM. |