LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-26-2020, 05:34 AM   #1
Otakuch
LQ Newbie
 
Registered: May 2020
Distribution: Gentoo
Posts: 28

Rep: Reputation: Disabled
What is the easiest way to install packages on slackware?


I installed Slackware 14.2 today, actually I've found it great but package installation is sucks. Would you help me?
 
Old 05-26-2020, 06:39 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,679
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
The way Slackware manages packages is very distinctive. It is not like most distros. There is no automatic dependency resolution for a start. If you really need that, use a distro from the Debian or Red Hat family.

The aim of Slackware is to make things very simple rather than very easy. Package managers like Debian's apt system are hugely complicated and behave like the little girl in the nursery rhyme: when they are good, they are very very good, but when they are bad, they are horrid! If they break, they break badly and it is quite difficult to get them to work properly again.

If you aren't temperamentally in tune with Slackware, that's fine. Linux is about choice. But that doesn't mean that Slackware's "package installation sucks". It just means that it isn't doing what you as a particular individual like package managers to do.

Having said that, you might find slackpkg more easy to use than the lower-level tools. If you think of installpkg as the equivalent of Debian's dpkg, then slackpkg is the equivalent of apt.

Last edited by hazel; 05-26-2020 at 06:51 AM.
 
6 members found this post helpful.
Old 05-26-2020, 07:01 AM   #3
Otakuch
LQ Newbie
 
Registered: May 2020
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
The way Slackware manages packages is very distinctive. It is not like most distros. There is no automatic dependency resolution for a start. If you really need that, use a distro from the Debian or Red Hat family.

The aim of Slackware is to make things very simple rather than very easy. Package managers like Debian's apt system are hugely complicated and behave like the little girl in the nursery rhyme: when they are good, they are very very good, but when they are bad, they are horrid! If they break, they break badly and it is quite difficult to get them to work properly again.

If you aren't temperamentally in tune with Slackware, that's fine. Linux is about choice. But that doesn't mean that Slackware's "package installation sucks". It just means that it isn't doing what you as a particular individual like package managers to do.

Having said that, you might find slackpkg more easy to use than the lower-level tools. If you think of installpkg as the equivalent of Debian's dpkg, then slackpkg is the equivalent of apt.
I got it, actually I really like the concept and I'm glad because of Using it, I just have to figure out regarding package installation/management. Thanks for your reply.!

Last edited by Otakuch; 05-26-2020 at 07:05 AM. Reason: spelling.
 
Old 05-26-2020, 07:08 AM   #4
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by hazel View Post
The way Slackware manages packages is very distinctive. It is not like most distros. There is no automatic dependency resolution for a start. If you really need that, use a distro from the Debian or Red Hat family.
Well you could use Salix (https://www.salixos.org) which is a derivative of Slackware with a package manager (slapt-get) that does resolve dependencies.
 
Old 05-26-2020, 07:24 AM   #5
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
there are a number of ways you can if you want approach package management. The first port of call for me is slackbuilds.org thats because you have the chance to read up deps required and nuances . So for instance
clamav:

it tells me where i can tweak where mirrors for virus sigs will come from :
COUNTRY=en ./clamav.SlackBuild

also :i need groups so i run


# groupadd -g 210 clamav
# useradd -u 210 -d /dev/null -s /bin/false -g clamav clamav


What this tells me is that if i were to just get a ready to install package from say slacky and install it ; it would probably go badly since they didn't tell me a few deps at the pkg repo to set up groups.


But if i read up at slackbuilds all about deps and there were no obvious caveats i might if there are
deps and i'm feeling more lazy than usual i might investigate with slpkg:

https://slackbuilds.org/repository/1.../?search=slpkg


so for instance say i was looking for a video editor and wanted to compare deps . First i do a general google, look at slackbuilds then:
bash-5.0# slpkg -F cinelerra

Packages with name matching [ cinelerra ]

+==============================================================================
| Repository Package Size
+==============================================================================
sbo cinelerra-2.3 0 K


check bulkage of deps :

bash-5.0# slpkg -t sbo cinelerra
Resolving dependencies... Done

+=================================
| Package cinelerra dependencies :
+=================================
\
+---[ Tree of dependencies ]
|
+--1: faac
|
+--2: faad2
|
+--3: imlib2
|
+--4: libavc1394
|
+--5: libdv
|
+--6: libiec61883
|
+--7: mjpegtools
|
+--8: lame
|
+--9: x264


ok thats too bad I have a couple of those deps already,. What about openshot ?

bash-5.0# slpkg -F openshot

Packages with name matching [ openshot ]

+==============================================================================
| Repository Package Size
+==============================================================================
sbo libopenshot-audio-0.2.0 0 K
sbo libopenshot-0.2.5 0 K
sbo openshot-2.5.1 0 K
conrad libopenshot-audio-0.2.0-x86_64-1cf.txz 1044 K
conrad libopenshot-0.2.5-x86_64-1cf.txz 764 K
conrad openshot-2.5.1-x86_64-2cf.txz 49488 K




ok a bit of choice, lets check out dep bloatage : see image os.jpg

being a minimalist person with ltd space i went for cinelerra


So regarding slpkg (not to be confused with slackpkg) you can install it on stable ; i'm running not so current ...current (5.4.12) and slpkg works just fine. There are a couple of minor tweaks after install including setting stable or current; depending on use. It does have quite good dependecy resolution and not only that using something like :

# slpkg -s <repo> <pkg name>

it will install as i observed "empirically" not only the main package but also the deps as well .
Attached Thumbnails
Click image for larger version

Name:	os.jpg
Views:	106
Size:	106.8 KB
ID:	33272  
 
Old 05-26-2020, 07:26 AM   #6
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,986

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by Otakuch View Post
I installed Slackware 14.2 today, actually I've found it great but package installation is sucks. Would you help me?
Did you do the recommended full installation? Hope so.

If you are looking to maintain Slackware 14.2 then slackpkg is the way to go. Read the man pages, for slackpkg and slackpkg.conf. Also read the instructions in the companion files of slackpkg, mirror and blacklist.

If you are looking for packages to install, Alien Bob's repository is a good start. You will need to use pkgtools (installpkg, upgradepkg, removepkg) to manage packages that are not part of Slackware. Be sure to read the man pages for those as well.

Once you get used to use the package managers that come with Slackware then you can branch out and start using sources like SBo (SlackBuilds.org) to build packages.

Last edited by chrisretusn; 05-26-2020 at 07:28 AM.
 
Old 05-26-2020, 07:41 AM   #7
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
if you want to look at slackpkg go here:

https://docs.slackware.com/slackware:slackpkg

when you get to the point of trying a slackbuild go for something easy and no deps eg latex2html :


https://slackbuilds.org/repository/1...rch=latex2html

you can have a read of complimentary explanation of latex2html build here:

https://docs.slackware.com/howtos:mi...f_a_slackbuild
 
Old 05-26-2020, 08:07 AM   #8
Otakuch
LQ Newbie
 
Registered: May 2020
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks for all replies, I created my strategy about that, I'm searching a package on pkgs.org and I'm fetching the package through wget and installing the package via installpkg
 
Old 05-26-2020, 08:28 AM   #9
I.G.O.R
Member
 
Registered: Dec 2017
Distribution: Slackware
Posts: 213

Rep: Reputation: 23
I also don't use official installer.

Boot with AlienBOB live cd, connect to internet, prepare target disk, mount etc.

Then just install the system package by package
ROOT=/target installpkg ... packages ...
 
Old 05-26-2020, 08:31 AM   #10
I.G.O.R
Member
 
Registered: Dec 2017
Distribution: Slackware
Posts: 213

Rep: Reputation: 23
Quote:
Originally Posted by Otakuch View Post
Thanks for all replies, I created my strategy about that, I'm searching a package on pkgs.org and I'm fetching the package through wget and installing the package via installpkg
It will take forever. You can use slackpkg after exporting ROOT variable. You can even install the whole groups

export ROOT=/target
slackpkg install a
slackpkg install ap
slackpkg install d
slackpkg install n
slackpkg install l
slackpkg install x
slackpkg install xap
slackpkg install xfce

Last edited by I.G.O.R; 05-26-2020 at 08:34 AM.
 
Old 05-26-2020, 08:36 AM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
If you already know what packages you want to install, you can avoid the painful manual installation by creating a slackpkg template and use that to install your packages non-interactively.
 
Old 05-26-2020, 12:25 PM   #12
Otakuch
LQ Newbie
 
Registered: May 2020
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by I.G.O.R View Post
It will take forever. You can use slackpkg after exporting ROOT variable. You can even install the whole groups

export ROOT=/target
slackpkg install a
slackpkg install ap
slackpkg install d
slackpkg install n
slackpkg install l
slackpkg install x
slackpkg install xap
slackpkg install xfce
If I do like export ROOT=/ and slackpkg install i3-gaps, can I use the package on daily user?
 
Old 05-26-2020, 03:14 PM   #13
I.G.O.R
Member
 
Registered: Dec 2017
Distribution: Slackware
Posts: 213

Rep: Reputation: 23
Quote:
Originally Posted by Otakuch View Post
If I do like export ROOT=/ and slackpkg install i3-gaps, can I use the package on daily user?
Oh, I confused something. You have already installed the system. My bad.

Just use slackpkgplus. You may setup repositories and find most of the things you need.
http://slakfinder.org/slackpkg+.html

Last edited by I.G.O.R; 05-26-2020 at 03:18 PM.
 
Old 05-26-2020, 03:19 PM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Otakuch View Post
Thanks for all replies, I created my strategy about that, I'm searching a package on pkgs.org and I'm fetching the package through wget and installing the package via installpkg
You should be aware that packages found on pkgs.net may not work with other packages on pkgs.net. These are provided by multiple people and may require different dependencies than what might be provided with other repos. It really is best to find a repo and stick with it. Many times packages from multiple repos will work without issue with each other (we see this frequently with packages from Alien Bob and rworkman and they usually work with packages from SBo), but there's always the possibility that they may not.

What most people recommend is using SlackBuilds.org (commonly called SBo), which will have you compile those packages for your exact system. While it is recommended to understand how SlackBuilds work, there are many tools that help automate the process of building and installing packages including finding and building all dependencies needed for it.
 
2 members found this post helpful.
Old 05-27-2020, 01:46 AM   #15
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,456

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
for me, the "traditional way" is to use the repository of SlackBuilds.org:
http://slackbuilds.org/

with a tool such as:

sbopkg: https://sbopkg.org/
you get a package from here: https://sbopkg.org/downloads.php
read about what queues are, in order to go around resolving dependencies: https://sbopkg.org/queues.php

or sbotools: https://pink-mist.github.io/sbotools/
it can be installed from SBo already: http://slackbuilds.org/repository/14.2/system/sbotools/

these two are the ones I have used most. There are other tools, such as:

slpkg: https://dslackw.gitlab.io/slpkg
install it from: http://slackbuilds.org/repository/14.2/system/slpkg/

sboui: https://github.com/montagdude/sboui
install it from: http://slackbuilds.org/repository/14.2/system/sboui/

there's slapt-src, but I havenot used it: https://software.jaos.org/ (bottom of the page)

Recently, I've been preparing my own packages repo by the excellent slackrepo (https://idlemoor.github.io/slackrepo/), running a small home server with the packages and I use slapt-get (https://software.jaos.org/) to install them on my home computers.

If you are looking for a trusted repo of precompiled third-party packages, you can take a look at AlienBob's repo, for example:
https://slackware.uk/people/alien/sbrepos/14.2/x86_64/

I would install QT5 from there, instead of compiling it for a day.
 
1 members found this post helpful.
  


Reply

Tags
slackware



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
Easiest way to get a Canon Pixma MX450 working on Slackware 14.2 jek404 Slackware 6 01-05-2017 10:20 PM
[SOLVED] Easiest Way to Connect Slackware and Win7 for File Copy on a LAN tronayne Slackware 14 05-27-2015 07:06 AM
Easiest and Most Prefered Way of Installing GNOME in Slackware 13? ManInSlax Slackware - Installation 9 03-07-2011 01:20 PM
What is the easiest way to install packages on slackware? abefroman Slackware 8 11-29-2005 01:17 AM
Easiest way to update slackware 10.0 Draconian Slackware 12 08-19-2004 02:36 AM

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

All times are GMT -5. The time now is 10:46 PM.

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