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 03-21-2016, 08:10 PM   #1
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Rep: Reputation: 37
slackpkg to update 14.1 system to get security updates


I wanted to get security updates that have been added to Slack 14.1 so I thought that slackpkg may work for that but wanted to make sure I did not misunderstand how it works.

If I have it pointed to a mirror that looks in /slackware/slackware64-14.1/ then if I run slackpkg upgrade all will that get only the packages that have been updated ? Should you run install-new first ?

Will this cluster bomb the system or is this going to work?



I found a few threads that seem to indicate that this is supposed to work
 
Old 03-21-2016, 08:44 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Here's my script for updating Slackware. I got it from one of the members of my LUG. Enjoy.

Code:
$ cat update-slack.sh
#!/bin/bash
slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
If you have installed additional programs from Slackbuids, Alien Bob's repos, or other sources, you might want to take a look at the comments in /etc/slackpkg/blacklist. After the upgrade script runs, it will ask you whether you want to keep or overwrite the config files for upgraded packages. I normally select "p" for prompt and get prompted for each file, so I can elect not to overwrite those that I have modified.

You can run the commands separately or as a script. If as a script, do not run it unattended, as it requires user interaction.

Last edited by frankbell; 03-21-2016 at 08:45 PM.
 
Old 03-21-2016, 09:53 PM   #3
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Well that sounds promising

I will try it on the 14.2 RC1 box I am building

I should mention that my 14.1 box is anything but bog standard. Well anyway I have multimedia editing software and virtualization software installed. I tried the 14.2 RC1 in a virtual machine first So far so good.

Actually now that I think about it I got all kinds of things I don't think about until I need them

I am not looking forward to upgrading to 14.2 (well actually I am, just hate to break everything)
 
Old 03-21-2016, 10:32 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Quote:
I am not looking forward to upgrading to 14.2 (well actually I am, just hate to break everything)
That's why I run --Current. Sometimes--very rarely--stuff breaks, because it's a testing version, but I can live with that if I don't have to upgrade from one version to another.

The last time I tried a Slackware version upgrade, I ended up running Debian because I broke the upgrade and took the easy way out. I got no beef with Debian--it's my second favorite after Slack--but I'm quite happy with --Current.
 
Old 03-21-2016, 11:42 PM   #5
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
I've always managed the "upgrade" by having a separate /home partition and doing a full install (but not formatting /home). I save /etc and /var to /home/user/ for quick reference and then recompile any SBo packages after the install. I also document system changes, so it's not too time consuming (usually an hour or two) to get the system back to a similar state.
 
1 members found this post helpful.
Old 03-22-2016, 11:57 AM   #6
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by TarFile View Post
I wanted to get security updates that have been added to Slack 14.1
1. Use mirror for 14.1
2. Run
Code:
# slackpkg update gpg  #only first time
# slackpkg update
# slackpkg upgrade-all
If you don't upgrade to new version, you don't need install-new or clean-system.
 
1 members found this post helpful.
Old 03-22-2016, 12:14 PM   #7
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

To get security updates for Slackware stable, you can also use slackpkg upgrade patches.

--
SeB
 
1 members found this post helpful.
Old 03-22-2016, 12:48 PM   #8
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
I think the slackpkg upgrade patches is what I am looking for.

If that updates the security related stuff that is what I am looking for.
 
Old 03-22-2016, 01:47 PM   #9
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Stable Slackware tree gets updates only in /patches, so "slackpkg upgrade-all" and "slackpkg upgrade patches" are equal.
 
2 members found this post helpful.
Old 03-22-2016, 04:21 PM   #10
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
And current doesn't have any packages in patches so what is slackpkg upgrade patches actually used for?
 
Old 03-22-2016, 05:23 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by Gordie View Post
And current doesn't have any packages in patches so what is slackpkg upgrade patches actually used for?
patches is used for stable (released) versions. In case of current the new packages replaces the old one in whatever subdirectory (a, ap, etc.) it was. Phenixia2003 pointed out that this command can be used for Slackware stable , i.e. not for Slackware current.
 
1 members found this post helpful.
Old 03-22-2016, 07:47 PM   #12
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
But, as it was pointed out already, I use
slackpkg update
slackpkg install-new
slackpkg upgrade-all
to upgrade 14.1 on my little netbook and nothing is missed because of it being in the patches directory.
The exact wording was
so "slackpkg upgrade-all" and "slackpkg upgrade patches" are equal.
I agree so I asked the obvious. What is slackpkg upgrade packages really good for?
 
Old 03-22-2016, 08:49 PM   #13
TarFile
Member
 
Registered: Mar 2003
Posts: 371

Original Poster
Rep: Reputation: 37
Not sure if this is related but I tried the slackpkg upgrade patches and now when I try to run GL games like doo3 I get weird errors.

glxgears runs so I don't know what the deal is but here is the error I get

/usr/local/bin/doom3: line 6: /usr/local/games/doom3/doom.x86: No such file or directory

bash-4.2# cd /usr/local/games/doom3
bash-4.2# ls
CHANGES base doom3 doomded.x86 openurl.sh
License.txt d3xp doom3-dedicated libgcc_s.so.1 pb
README doom.x86 doom3.png libstdc++.so.6 version.info

as you can see doom.x86 is where it is supposed to be.

Same sort of thing happens with other games.

bash-4.2# heretic2
bash: /usr/local/bin/heretic2: No such file or directory

bash-4.2# cd /usr/local/bin/
bash-4.2# ls
doom3 qemu-microblazeel qemu-sparc32plus qemu-system-ppc
doom3-dedicated qemu-mips qemu-sparc64 qemu-system-ppc64
heretic2

I am stumped
 
Old 03-23-2016, 12:29 AM   #14
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
You can get "No such file or directory" if you try to run x86_64 binary on i?86 architecture or vise versa (without multilib).
Are you sure the system before update was Slackware64 (64-bit) and not Slackware (32-bit)?
 
Old 03-23-2016, 04:15 AM   #15
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Quote:
Originally Posted by TarFile View Post
Not sure if this is related but I tried the slackpkg upgrade patches and now when I try to run GL games like doo3 I get weird errors.
glxgears runs so I don't know what the deal is but here is the error I get

/usr/local/bin/doom3: line 6: /usr/local/games/doom3/doom.x86: No such file or directory
This is not related to slackpkg upgrade patches. The issue you encounter is that you have upgraded your slackware64/multilib without blacklisting the multilib version of packages glibc/gcc. Therefore, slackpkg has superseded some of them to the version found in patches directory, and more precisely the packages below :

Code:
glibc-2.17-x86_64-11_slack14.1.txz
glibc-i18n-2.17-x86_64-11_slack14.1.txz
glibc-profile-2.17-x86_64-11_slack14.1.txz
glibc-solibs-2.17-x86_64-11_slack14.1.txz
To fix that, you need to reinstall the multilib version of these packages. To prevent that kind of issue in the future, you must blacklist the multilib version of gcc/glibc by adding the lines below in /etc/slackpkg/blacklist :
Code:
[0-9]+alien
[0-9]+compat32
Alternatively, you can use the plugin slackpkg+ to manage the multilib (and more). For more about it, read this page.

Note: As opposed to slackpkg upgrade patches, slackpkg upgrade-all would have superseded all mutlilib version of glibc/gcc packages with their pure 64-bit counterpart found in entire slackware64 tree, and not just in patches directory.

--
SeB

Last edited by phenixia2003; 03-23-2016 at 04:25 AM.
 
2 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
[SOLVED] slackpkg check-updates rogan Slackware 2 01-05-2014 01:40 PM
System Updates won't update erowe89 Linux - Software 3 04-07-2013 09:17 PM
how to set open suse 12.2 to update security updates only ashishyadav26 Linux - Newbie 1 09-25-2012 10:37 AM
Security updates available but apt-get/aptitude makes no changes to the system. rsduhamel Linux - Server 2 04-22-2011 05:29 PM
[SOLVED] slackpkg + security updates vttay03 Slackware 6 01-09-2010 01:03 PM

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

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