LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-18-2023, 11:11 AM   #1
youni
LQ Newbie
 
Registered: Mar 2023
Posts: 27

Rep: Reputation: 11
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.
 
Old 03-18-2023, 11:20 AM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,670

Rep: Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369
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/
 
2 members found this post helpful.
Old 03-18-2023, 11:33 AM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware
Posts: 7,341

Rep: Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744
Quote:
Originally Posted by youni View Post
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 View Post
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.

Code:
# chmod +x /etc/rc.d/rc.nordvpn
 
2 members found this post helpful.
Old 03-18-2023, 11:36 AM   #4
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,465

Rep: Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258
Quote:
Originally Posted by youni View Post
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.
 
2 members found this post helpful.
Old 03-18-2023, 11:43 AM   #5
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware
Posts: 7,341

Rep: Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744
Quote:
Originally Posted by LuckyCyborg View Post
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.
 
1 members found this post helpful.
Old 03-18-2023, 11:53 AM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,670

Rep: Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369
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.
 
1 members found this post helpful.
Old 03-18-2023, 01:30 PM   #7
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,776

Rep: Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425
"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.

Last edited by enorbet; 03-18-2023 at 01:31 PM.
 
2 members found this post helpful.
Old 03-18-2023, 02:05 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
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
 
3 members found this post helpful.
Old 03-18-2023, 02:18 PM   #9
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 544

Rep: Reputation: Disabled
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.
 
2 members found this post helpful.
Old 03-18-2023, 02:53 PM   #10
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,824
Blog Entries: 17

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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.
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.
 
Old 03-18-2023, 03:03 PM   #11
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Rep: Reputation: 56
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:
ksirk konquest klines knetwalk kmines klickety kjumpingcube killbots katomic picmi rocs kalzium kalgebra cantor step minuet kturtle ktouch kgeography kmplot kbruch parley kwordquiz kiten artikulate latte-dock krusader juk analitza alkimia knavalbattle kpat kdeedu-data kdiagram elisa palapeli kubrick ksudoku kdiamond khangman kanagram blinken lskat ksquares kreversi knights kmahjongg kiriki kigo kfourinline kblackbox bovo kspaceduel ksnakeduel kollision kolf kgoldrunner kbreakout kbounce kblocks kapman granatier bomber filelight kdf konqueror fcitx ibus kig kshisen xsnow gwenview joe pidgin audacious xmms audacious-plugins blackbox fluxbox fvwm geeqie gftp gkrellm mozilla-thunderbird pan windowmaker xaos xgames xine-ui xpaint xpdf xscreensaver gucharmap gnuchess thunar mousepad hplip emacs emacspeak kteatime kalarm itinerary kfloppy kjots ktimer ktimetracker minuet kstars skanlite xsane xfig kopete konversation krdc krfb ktnef sieveeditor dragon easytag kamoso kid3 elisa kmymoney xfce latte-dock digikam akregator pim-sieve-editor kget kmail-account-wizard kmail grantlee-editor pim-data-exporter alkimia cervisia kitinerary itinerary kcontacts kde-dev-scripts kde-dev-utils kdepim-addons kdepim-runtime kdesdk-kioslaves kdesdk-thumbnailers kdesignerplugin kdev-php kdev-python kdevelop kdevelop-pg-qt twm yakuake kapptemplate kirigami-gallery plasma-sdk hexchat korganizer elementary-xfce emacspeak fcitx fcitx-anthy fcitx-configtool fcitx-hangul fcitx-kkc fcitx-libpinyin fcitx-m17n fcitx-qt5 fcitx-sayura fcitx-table-extra fcitx-table-other fcitx-unikey Greybird kcm-fcitx konqueror nethack xfce4-panel-profiles xfce4-screensaver xfce4-whiskermenu-plugin falkon QtAV kruler kdeconnect-kde tigervnc nmap kwave calligraplan calligra zanshin kile kaddressbook kontact kontactinterface lokalize kontrast umbrello kcachegrind krita kimagemapeditor wpa_supplicant soma thunar-volman kbackup kmag kmousetool khelpcenter libxfce4ui libxfce4util xfce4-appfinder xfce4-clipman-plugin xfce4-dev-tools xfce4-notifyd xfce4-panel xfce4-power-manager xfce4-pulseaudio-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-weather-plugin xfdesktop xfconf xfwm4 xfce4-whiskermenu-plugin tumbler garcon exo ibus-anthy ibus-hangul ibus-kkc ibus-libpinyin ibus-m17n ibus-table ibus-unikey vim-gvim akonadi-import-wizard knotes sweeper v4l-utils kleopatra bsd-games

slackpkg remove f
slackpkg remove xfce
slackpkg remove y

Last edited by veeall; 03-19-2023 at 03:57 PM.
 
2 members found this post helpful.
Old 03-18-2023, 03:50 PM   #12
lostintime
Member
 
Registered: Dec 2021
Posts: 188

Rep: Reputation: Disabled
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'
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.

I hope this helps!
 
5 members found this post helpful.
Old 03-18-2023, 04:29 PM   #13
youni
LQ Newbie
 
Registered: Mar 2023
Posts: 27

Original Poster
Rep: Reputation: 11
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.
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
 
Old 03-18-2023, 04:44 PM   #14
keithpeter
Member
 
Registered: Nov 2015
Location: 52:30N 1:55W
Distribution: Slackware 15.0, OpenBSD 7.4
Posts: 309

Rep: Reputation: Disabled
Quote:
Originally Posted by youni View Post
Also I do not know if these services are running, and how to prevent their autostart on boot:
mysqld php-fpm
My unscientific method of seeing which services are running is...

Code:
# ls -la /etc/rc.d/
Look for the rc scripts that are executable (green with an asterisk in default terminal theme), those will run on boot.

http://www.slackware.com/config/init.php

Good luck with it.
 
1 members found this post helpful.
Old 03-18-2023, 04:46 PM   #15
lostintime
Member
 
Registered: Dec 2021
Posts: 188

Rep: Reputation: Disabled
Quote:
I will remove without any problems:
#du -hs /usr/lib64/{thunderbird,seamonkey}
removepkg mozilla-thunderbird seamonkey

Quote:
I also do not need services:
samba speech-dispatcher nfsd cups dovecot httpd
removepkg samba speech-dispatcher nfsd cups dovecot httpd

Quote:
Also I do not know if these services are running, and how to prevent their autostart on boot:
mysqld php-fpm
/etc/rc.d/rc.mysqld stop
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.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Slackware remove unnecessary packages dalacor Slackware 19 03-19-2023 05:59 PM
[SOLVED] how to use 'apt-get autoremove' to remove unnecessary packages Gregg Bell Linux - Newbie 6 12-05-2014 01:44 AM
Ubuntu Netbook - remove all unnecessary packages to run a server role fantasygoat Linux - Server 5 11-25-2010 12:55 PM
remove unnecessary contents divyashree Linux - Newbie 4 06-15-2009 06:20 AM
Remove unnecessary packages on a Fedora 10 install Roflcopter Linux - Software 5 04-12-2009 11:01 AM

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

All times are GMT -5. The time now is 02:51 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