LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-10-2016, 07:42 AM   #31
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065

What I do is pretty simple; I keep all my systems at stable, subscribe to the security mail list, manually download packages and apply the updates. I keep them in /usr/local/patches and spin them to other systems (via scp) and manually upgrade.

I download from OSUOSL with wget, one of today's downloads:
Code:
wget ftp://ftp.osuosl.org/pub/slackware/slackware64-14.1/patches/packages/bind*
I use command line editing to simply change enough of the package name (it was mozilla-nss*, changed it to bind*).

I know I can automate it, I don't want to, I prefer spending the time and having control.

Every once in a while I blow away the content of /usr/local/patches and download the entire thing again just to make sure I get non-security patches (I don't really read the change logs, lazy). Once downloaded,
Code:
upgradepkg *.t?z
That only patches anything that is newer than what's already there. Simple.

I support a couple of folks that have 32-bit (and I have two 32-bit boxes) and a couple that have 64-bit systems. No big deal, download the entire archive twice into different directories, burn them on a flash drive, spend a little quality time with the folks I support (and get coffee and cookies to boot). Update via sneaker net and driving around a little. Get some fresh air (and don't forget the coffee and cookies and, sometimes, donuts or maybe carrot cake).

Is it a burden? Well, no, only takes about five minutes to download the entire archive, five for 32-, another five for 64-bit. Folks I support don't have super zoomie Internet connections, I do, no big deal.

And, OP, if you're running 64-bit boxes, make sure you get the kernel patches and apply them if you haven't done that, might want to do that first.

Slackware is kept up to date via patched packages, you find out about those with the security mail list plus, every so often, go read though the change log for non-security patches.

Or, just follow the excellent advise in posts up above and automate the process if that floats your boat. Either way, it's worth what little time you have to take to keep things running smoothly.

Hope this helps some.
 
5 members found this post helpful.
Old 03-10-2016, 07:47 AM   #32
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
I'm also a proponent of the rsync approach, though there's nothing wrong with using slackpkg if it suits you.
 
Old 03-10-2016, 09:51 AM   #33
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,345

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by GazL View Post
I'm also a proponent of the rsync approach, though there's nothing wrong with using slackpkg if it suits you.
Interesting. I took the term "automated" to mean updating with little or no user interaction. Some distros prompt you with an icon letting you know that updates are ready to be installed. I have manually installed updates in the past with Slackware. These days I like and use slackpkg.
 
Old 03-10-2016, 09:54 AM   #34
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I think it's the over reliance on slackpkg that hurts good administrative tactics. Rsyncing packages and sources allows you to use the changelogs to patch and build locally or use vanilla packages, if they have no specialized patches needed, and gives you complete control. How do people miss this? Do we need a HowToRsyncAndLocalAdmin.txt on the install/boot media?

I like slackpkg myself, but I'm not corporate IT where rsyncing should be used.

Last edited by ReaperX7; 03-10-2016 at 09:55 AM.
 
1 members found this post helpful.
Old 03-10-2016, 10:15 AM   #35
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by Perceptor View Post
I keep my systems up to date via AlienBOB's rsync_slackware_patches.sh script. Patches get downloaded automatically, then I review them before upgrading. One could easily automate it further, but I prefer to review the changelog before running upgradepkg.
Most of my third-party packages are from slackbuilds, for that I use sbopkg -c.
I do something similar but with my own script:

https://gist.github.com/ruario/9673751

Using wget, it syncs patches only for the official packages I have installed (no point downloading KDE updates if you don't have KDE), for the stable Slackware version I am running, using a mirror found via mirrors.slackware.com. Then it checks their signatures.

Upgrades are done via upgradepkg.

EDIT: It handles blacklisting updates as well.

Last edited by ruario; 03-10-2016 at 10:16 AM.
 
3 members found this post helpful.
Old 03-10-2016, 10:56 AM   #36
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
On my public servers I'm using slackpkg, but only after reading the ChangeLogs (with the morning coffee). On client's networks (schools etc.) I keep a local Slackware (and MLED) repository, and all the client desktops are in sync with that local repository.

On a side note, that's one thing that works really great on Debian and derivatives: the package proxy Apt-Cacher. Badly missing on all non-Debian distributions.

Cheers,

Niki
 
1 members found this post helpful.
Old 03-10-2016, 12:37 PM   #37
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by solarfields View Post
I do not want to sound harsh or nagging, but what is the point of threads titled like this? Are we supposed to start convincing the original poster to not leave Slackware? Or are we supposed to feel somehow guilty that a Slackware user is leaving the distribution?

Seriously, if you have some questions or frustrations: just ask right away, stating clearly what your issue is. Or if you have made up your mind -- just change your distribution, no one cares.
That's exactly what I think when I see threads like this as well. If you've made up your mind to do something already, there's no point in making up a thread to tell other people so. That smacks of attention-getting/drama, and I tend to think little of those kinds of people (This may be an exception, however)
 
Old 03-10-2016, 12:59 PM   #38
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Quote:
Originally Posted by hitest View Post
Interesting. I took the term "automated" to mean updating with little or no user interaction. Some distros prompt you with an icon letting you know that updates are ready to be installed. I have manually installed updates in the past with Slackware. These days I like and use slackpkg.
"Assisted" might be a more appropriate word for what I do. The script I use compares the available packages on my system to the installed packages (identified from /var/log/packages) and then generates lists of packages to be installed, removed, or upgraded. It's just a way of not having to manually work through the changelog doing the installpkg/upgradepkg/removepkg for each package. I still give it full oversight and don't run it blindly (although I probably could do so and get away with doing that most the time).

For example, here's today's updates (plus a new kernel from my local packages directory) which I'm just about to apply:
Code:
root@ws2:~$ slacklist upgrade
/srv/slackware-current/slackware/n/bind-9.10.3_P4-i586-1.txz
/srv/slackware-current/slackware/d/cmake-3.5.0-i586-1.txz
/srv/slackware-current/slackware/a/cryptsetup-1.7.1-i586-1.txz
/srv/slackware-current/slackware/n/gnupg-1.4.20-i586-1.txz
/srv/slackware-current/slackware/a/grep-2.23-i586-1.txz
/srv/slackware-current/slackware/ap/htop-2.0.1-i586-1.txz
/srv/slackware-packages/kernel-4.4.y-smp-4.4.5-i686-1_local.txz
/srv/slackware-current/slackware/n/lynx-2.8.8rel.2-i586-1.txz
/srv/slackware-current/slackware/l/mozilla-nss-3.23-i586-1.txz
/srv/slackware-current/slackware/x/xf86-video-openchrome-git_20160309_74e95a6-i586-1.txz
So, I run my script (which does nothing but generate a list on stdout), and then if I'm happy with what I see, I run
slacklist upgrade | sort | xargs -r upgradepkg

The rsync I use is a fairly simple:
Code:
MIRROR="rsync://rsync.slackware.org.uk/slackware/slackware-current"
DESTDIR="/srv/"

rsync -avz --delete --delete-excluded \
      --partial --timeout=60 \
      --exclude='source/' \
      --exclude='kde/' \
      --exclude='kdei/' \
      "$MIRROR" "$DESTDIR"
... which will run to about 1.6GB of diskspace, and is IMO more than worth it for the convenience of having ready access to all the packages (with the exception of KDE/KDEI) should something go wrong and things need to be reinstalled.


It also works for a stable release. You just add .../patches/packages to the list of directories slacklist scans for package files. Some people will object to setting aside a few GB of diskspace for the local mirror, but IMO it is well worth it and I view it as somewhat akin to a windows recovery partition.

I've been doing it this way for about 3 years now.
 
2 members found this post helpful.
Old 03-10-2016, 04:23 PM   #39
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
While I agree the thread title could be worded with considerably less confrontational language I am also aware that IT departments aren't always logical especially toward someone who chooses to use any system not ordained by the pack. So it is entirely possible that OP wrote the title after a culmination of unreasonable pressure from people who frankly don't know shit from shinola about Slackware or even security. Many mindlessly shuffle off responsibility by doing ALL updates regardless of negative impacts exactly because they think they can say "Not my fault. They did it" This should not be taken to excuse such a long-standing member but at least to extend some empathy for dealing with morons, incapable of critical thinking or basic responsibility.

OP, take this as you will, but I too have nearly 20 years using Slackware and additionally routinely and thoroughly test other distros mainly so I can see what's going on and converse about it from experience. IMHO there exists not one distro as stable and strong as Slackware. What is perceived as time saved by automation is consumed by increasing the complexity of troubleshooting when it comes to upgrades. I sincerely hope you have seen some good ways to walk a sober line and get what is actually needed accomplished without destroying the advantages Slackware Basic offers.

If it applies, tell those morons, "We shall see whose system gets compromised first...or even ever"

Last edited by enorbet; 03-10-2016 at 04:25 PM.
 
9 members found this post helpful.
Old 03-11-2016, 09:09 AM   #40
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by GazL View Post
"Assisted" might be a more appropriate word for what I do. The script I use compares the available packages on my system to the installed packages (identified from /var/log/packages) and then generates lists of packages to be installed, removed, or upgraded. It's just a way of not having to manually work through the changelog doing the installpkg/upgradepkg/removepkg for each package. I still give it full oversight and don't run it blindly (although I probably could do so and get away with doing that most the time).

For example, here's today's updates (plus a new kernel from my local packages directory) which I'm just about to apply:
Code:
root@ws2:~$ slacklist upgrade
<<snip>>
GazL --

I am also an rsync ; review ; ( upgrade-or-install ) kind of guy ...

I was going to write a script that compares the files rsync'd from the mirror with what's installed on my system, accounting for version strings and the 'extra stuff' after the base package name ...

It sounds like slacklist must already does most of what I need ?

can you share slacklist or is it already out there or is there some other utility that knows how to parse package names, eliminating the version strings ?

Thanks !

-- kjh
 
Old 03-11-2016, 09:35 AM   #41
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,
Quote:
Originally Posted by asarangan View Post
I've been using Slackware since the very first version came out in 1993, and I have about 10 machines currently running. While don't claim to be an expert, I am not timid when it comes to linux either. May be this is the wrong forum to ask, but am looking for some suggestions on what other distributions might be worth checking out. Here are some of my issues with slack:
Coming to a Slackware forum and asking for suggestion to abandon Slackware for other distributions will get you a mixed result. Maybe look at Linux - Distributions and query in the potential distribution forums that you may find interesting.

Quote:
Originally Posted by asarangan View Post
- There have not been any Slackware updates in 3 years.
Sorry, but PV & team have provided version updates over the last 3 years. Please see the suggestion for signing up for the mailing list below.

Quote:
Originally Posted by asarangan View Post
I had to update some security patches at the insistence of our IT department. I installed these from Slackware-current but they failed due to inconsistent dependencies.
Never! Never! Mix version packages, especially from -current. Unless you are running -current. PV & team spend a lot of time to prevent dependency issues so why would you think mixing with a newer version with a older one would work? One other note that you should know since you state 23 years experience with Slackware, Slackware -current should not be used on production equipment unless you thoroughly know how to troubleshoot/repair issues with that install when and if problems arise.

Quote:
Originally Posted by asarangan View Post
So I installed the entire Slackware-current, and now even slackpkg is broke. It fails with "awk: error while loading shared libraries: libsigsegv.so.2: cannot open shared object file: No such file or directory". I can track down these libraries by hand one by one, but it seems to go on and on forever. Its probably easier to wipe out everything and start from scratch.
Sounds like a bad install! You did verify your downloaded ISO md5sum and burnt image verified?

Quote:
Originally Posted by asarangan View Post
- Despite years of use, I am still unclear how to automate package updates. I have been using Sbopkg, which syncs with slackbuilds, but slackbuilds does not contain any of the stock packages that come with the default distribution. So for security patches to critical packages, the only place seems to be slackware-current, which turns out may break the entire system due to dependency problems, including slackpkg itself.
You should sign up for the Slackware Mailing Lists Follow the directions on the site to get announcements for version updates.

Quote:
Originally Posted by asarangan View Post
I would appreciate any input you may have.
Slackware Doc Project provides useful information to new and old Slackware users that will aid you in working with Slackware.

Hope this helps.
Have fun & enjoy!

 
3 members found this post helpful.
Old 03-11-2016, 10:17 AM   #42
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Quote:
Originally Posted by kjhambrick View Post
can you share slacklist or is it already out there or is there some other utility that knows how to parse package names, eliminating the version strings ?
Yep, happy to. I suppose I really ought to get myself a github account for some of my stuff. I did post it on this forum once before when I first wrote it, but was met with a lack of interest. I've been toying with the idea of rewriting it in either perl or C in order to avoid having to use the temporary files and the dependence on coreutils/sed, but its been working well enough as is, so I never really got around to it.

Last edited by GazL; 12-16-2017 at 05:50 AM.
 
4 members found this post helpful.
Old 03-11-2016, 01:08 PM   #43
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Anyone tried syncthing purported to be rsync's successor?
 
Old 03-11-2016, 02:20 PM   #44
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by GazL View Post
Yep, happy to. I suppose I really ought to get myself a github account for some of my stuff. I did post it on this forum once before when I first wrote it, but was met with a lack of interest. I've been toying with the idea of rewriting it in either perl or C in order to avoid having to use the temporary files and the dependence on coreutils/sed, but its been working well enough as is, so I never really got around to it.
Thanks GazL !

The sed patterns in your script are exactly the kind of thing I am looking for ...

I want 'something' to compare what's in /var/log/packages/ to whats in my slackware rsync target ( /home/dld/slackware-current-64/ )

I want it to look both ways: missing from /var/log/packages/ and/or missing from ~/slackware-current-64/

I want it to work for new packages and patches ( packages while I am on current ; patches when / if I settle into 14.2 stable )

Eliminating those pesky version strings from the `base` package name is the 'fun' part and the heart of the project.

Thank you !

I'll throw what I've got out here when I finish.

-- kjh
 
Old 03-11-2016, 06:49 PM   #45
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Quote:
Originally Posted by kjhambrick View Post
I want 'something' to compare what's in /var/log/packages/ to whats in my slackware rsync target ( /home/dld/slackware-current-64/ )
Yep, that's exactly what I wrote slacklist to do.

Quote:
Originally Posted by kjhambrick View Post
I want it to look both ways: missing from /var/log/packages/ and/or missing from ~/slackware-current-64/
"slacklist install" will show you what is missing from /var/log/packages (i.e. not installed), and "slacklist remove" will show you what is installed but doesn't have a package file in your mirror.

Quote:
Originally Posted by kjhambrick View Post
I want it to work for new packages and patches ( packages while I am on current ; patches when / if I settle into 14.2 stable )
Yep, it should do that too. You just need to create the right entries in your ~/.slacklistrc file or PKGPATH env var. It really is quite flexible.

Have a play with it, you might find it already does what you need, but if you want to borrow parts of it and go your own way, then that's fine too.
 
1 members found this post helpful.
  


Reply



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
Slackware is 21 Years Old jeremy Linux - News 1 07-18-2014 11:33 PM
Abandoning Fedora; Need a new distro tnandy Linux - Newbie 10 10-17-2012 08:10 PM
Considering abandoning slackware for new distro, but i cant decide... Suggestions? onda_trollet Linux - Distributions 9 02-11-2010 04:30 PM
Trying Slackware after years away Agent69 Slackware 5 06-04-2002 06:30 AM
abandoning windoze Lennart Linux - General 8 03-30-2002 09:36 AM

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

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