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.
I was using slackpkg to install upgrades on an old 32bit Intel computer with Slackware 15.0 but I have been forced to give
up using it due to its strange behavior during the slackpkg update step. It apparently tries to resolve the name of
the local ftp.lip6.fr mirror everytime it downloads a file. The name resolution take much longer than dig or nslookup. Then, the file transfer often stops with timeouts followed by retries. Upgrading a few packages can take sometimes more than 1 hour. It is much faster to download directly the packages with ftp and install them with upgradepkg. I could not to determine the cause of the problem. ftp.lip6.fr is a FreeBSD server belonging to the computer lab of University Pierre and Marie Curie, and switching HTTP/FTP or using a server in Germany does not improve anything. It also does not look like a networking issue on Slackware as I can browse the web or send email with seamonkey.
I suspect the downloader used by slackpkg to retrieve the files is the bottleneck, but I have no idea how it can br tested.
I use slackscan by GazL. I find it much more flexible than slackpkg.
In particular, slackscan make it possible to use slackrepo without gen_repos_files.sh, which makes slackrepo really fast (i.e., remove slackrepo's main flaw).
I have my own script that is a wrap around for pkgtool(8) and downloads for a very long time. Every so often I toy with the idea of using slackpkg, but then get lazy
Assuming that "no, I don't" answers are also of interest...
Only one computer to maintain, running 15.0 (not current). I manually download patches to a directory as a regular user, su to root, install them with upgradepkg. Back as regular user I do an "ls -l *.txz >>{text file}" to track what was installed on what date, move the packages to an "installed" directory, move older versions of the same patch to a "superceded" directory. All old copies kept... This way I control what is installed, and know when.
I do not use slackpkg. I use slapt-get, the tools shipped in the pkgtools packages and spkg. I will try slpkg when I find the time, i.e. not soon. Caveat: I run a derivative of Slackware most of the time, to which slackpkg is not well suited. I could use it when running Slackware, although I also use slapt-get also in this case, as it comes handy to install packages from repositories providing the metadata it needs in PACKAGES.TXT, like those maintained by Eric Hameleers ot George Vlahavas.
I download manually the ChangeLog.txt and new patches with Midnight Commander on ftp.lip6.fr, verify *.asc with gpg then apply patches with upgradepkg. Also check for *.new files.
On my server I do then decide if it needs to. doing
Code:
upgradepkg --reinstall --install-new
as stated earlier if needed. Haven't in some time.
update/ upgrade based on your need for the most current on things.
I have a directory "updates" which contains symbolic links to packages in the patches directory and another directory with custom packages. This directory also contains a copy of the file /etc/slackware-version and a Makefile with the follwing contents:
This directory is mounted by all machines in the network and they have a cron job as /etc/cron.hourly/slack_update looking like something this:
Code:
#!/bin/sh
if [ -r /auto/slack150/updates/Makefile ]; then
( cd /auto/slack150/updates ; make ) > /var/log/slack_update
fi
The Makefile starts by checking that it is being run on the right version of Slackware (installing packages for the wrong version of Slackware can give a really annoying result) and then updates all packages needed to be updated in alphabetical order. Sometimes this alphabetical order is important, the package management itself might become broken if the wrong package is installed too early.
I see that others have mentioned maintaining a local directory or repo of packages so to add to my previous post...
I use Eric's mirror script to maintain a local mirror of the Slackware release versions that I use, and always update from those local repos, whether manually or using slackpkg. This allows a great deal of flexibility when upgrading multiple hosts, and maintains my ability to recover or install new instances to the most recently used state entirely from local repos, in the increasingly likely event we lose access to remote repos for any number of reasons.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.