LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-11-2015, 04:17 AM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
Updating fresh Slackware 14.1 install


I have just installed slackware 14.1 from CD (iso file of 2013). I think I should update it with following commands:

Code:
slackpkg update
slackpkg upgrade slackpkg
slackpkg new-config
slackpkg upgrade glibc-solibs
slackpkg install-new
slackpkg upgrade-all
Please advise.
 
Old 11-11-2015, 04:26 AM   #2
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
I would rather create an installation DVD with slackware(64)-current (this is clearly explained in isolinux/README.TXT), with an additional directory containing supplementary packages, and install it.
 
Old 11-11-2015, 05:45 AM   #3
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
I have to keep Slackware 14.1 (32bit) for the present so what would be the best method to update a fresh install?
 
Old 11-11-2015, 06:43 AM   #4
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
What do you mean by "update" if it is not bringing to current ?

I do everything by hand. So in this case I would go in the slackware-current/slackware directory, then
mv a/aaa_base* .
upgradepkg --install-new */*tgz
upgradepkg --install-new */*txz
mv aaa_base* a/
Then I would look in Changelog.txt to see which packages must be removed (I think there are about 25)

Then of course one would need to take care of the change of kernel and what that means for booting (run 'lilo -C /etc/lilo.conf' if lilo is used for ex.)

(I hope I forgot nothing....)
 
Old 11-11-2015, 07:12 AM   #5
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Are there any security updates for version 14.1? The iso file which I downloaded had a date of 04-Nov-2013. Generally release versions keep getting security updates. How do I manage that?
 
Old 11-11-2015, 07:16 AM   #6
Perceptor
Member
 
Registered: Jul 2007
Location: the Future
Distribution: Slackware
Posts: 128

Rep: Reputation: 64
AlienBOB's rsync_slackware_patches.sh script is one of the options.
 
Old 11-11-2015, 07:21 AM   #7
Uncle Lumpy
Member
 
Registered: Feb 2010
Posts: 63

Rep: Reputation: 48
I would go to any of the mirrors and download the files in the slackware-14.1/patches/packages directory. I would then cd into the directory of the downloaded files and do an "upgradepkg *.txz" as root in order to bring you installation up to the most current configuration for 14.1 (32-bit).
 
Old 11-11-2015, 07:28 AM   #8
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Is there any tool or command that will download all files in http://slackware.mirrors.tds.net/pub...ches/packages/

Will following work:

Code:
wget http://slackware.mirrors.tds.net/pub/slackware/slackware-14.1/patches/packages/*
 
Old 11-11-2015, 07:44 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,355

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
uncomment one of the lines under slackware-14.1 in /etc/slackpkg/mirrors for a your prefered mirror.
Then as root
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
The default for slackpkg is to download everything then install, so will have to have enough room on partition to download the packages.
At the end of installing updates will be asked to rerun lilo if the kernel is updated, and to replace configuration files with new ones.

Last edited by colorpurple21859; 11-11-2015 at 07:47 AM.
 
Old 11-11-2015, 07:48 AM   #10
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
Quote:
Originally Posted by rng View Post
Is there any tool or command that will download all files in http://slackware.mirrors.tds.net/pub...ches/packages/

Will following work:

Code:
wget http://slackware.mirrors.tds.net/pub/slackware/slackware-14.1/patches/packages/*
Perceptor gave you that answer already:
Quote:
AlienBOB's rsync_slackware_patches.sh script is one of the options.
In a cron job you could schedule a daily check like this:
Code:
# Keep the Slackware patches up to date
33 5 * * *      /usr/local/sbin/rsync_slackware_patches.sh -q -r 14.1
That script will be silent if no new patches are found and downloaded.
It will output a message when it does find updates. Cron wil send that text as an email to the user who is running the cron job.
Example:
Code:
Date: Sat, 7 Nov 2015 03:53:42 +0100
From: root@blah.local.net
To: root@blah.local.net
Subject: cron for user root /usr/local/sbin/rsync_slackware_patches.sh -q -r
     14.1

[rsync_slackware_patches.sh:] New patches have arrived for Slackware 14.1
(x86)!

.......................................................................

0a1,15
> Fri Nov  6 01:15:43 UTC 2015
> patches/packages/mozilla-firefox-38.4.0esr-i486-1_slack14.1.txz:
Upgraded.
>   This release contains security fixes and improvements.
>   For more information, see:
>     http://www.mozilla.org/security/known-vulnerabilities/firefoxESR.html
>   (* Security fix *)
> patches/packages/mozilla-nss-3.20.1-i486-1_slack14.1.txz:  Upgraded.
>   Upgraded to nss-3.20.1 and nspr-4.10.10.
>   This release contains security fixes and improvements.
>   For more information, see:
>     http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7181
>     http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7182
>     http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7183
>   (* Security fix *)
> +--------------------------+
If you see that in your mailbox you know that it is patch time.
 
Old 11-11-2015, 09:34 AM   #11
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
Will the script rsync_slackware_patches.sh script work for any version of Slackware?
 
Old 11-11-2015, 11:18 AM   #12
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
Probably the simplest way is to follow colorpurple21859's advice. However, since you're just looking to install patches, the install-new portion shouldn't be needed.

Just uncomment a 14.1 mirror in /etc/slackpkg/mirrors, then run

Code:
slackpkg update gpg  #only needed one time to sync the server's gpg key
slackpkg update   #checks the server to see what updates are out since the last check
slackpkg upgrade-all   #provides you with a dialog box of all potential upgrades and allows you to select which ones to install
NOTE: slackpkg and upgradepkg see any version change as a potential upgrade, even if it is a lower version of the package. If you install newer versions of official Slackware software, you may want to add those packages to the blacklist, so you don't actually "upgrade" (downgrade) them.
 
Old 11-11-2015, 12:19 PM   #13
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,901

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
For good measure: slackware:slackpkg

also: howtos:slackware_admin:systemupgrade
 
Old 11-12-2015, 07:07 AM   #14
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
Quote:
Originally Posted by rng View Post
Will the script rsync_slackware_patches.sh script work for any version of Slackware?
Code:
./rsync_slackware_patches.sh -h
-----------------------------------------------------------------
$Id: rsync_slackware_patches.sh,v 1.22 2015/07/01 12:51:17 root Exp root $
-----------------------------------------------------------------
[rsync_slackware_patches.sh:] Parameters are:
  -a <arch>    Architecture to mirror (defaults to 'x86',
               can be 'x86_64' too).
  -h           This help.
  -k           Keep old local files even though they were
               removed on the remote server.
  -n           Rsync dry-run (don't download anything).
  -p           Download packages only - not the sources.
  -r <release> Act on Slackware version <release>. The default
               is to download patches for Slackware 13.37
  -q           Non-verbose output (for cron jobs).
  -s           Download sources only - not the packages.
  -X <xfile>   File 'xfile' contains a list of exclude patterns
               for packages that you do not want mirrored.
 
Old 11-12-2015, 07:14 AM   #15
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
I was able to update the system using following commands (after selecting one mirror) as advised by @bassmadrigal :

Code:
slackpkg update gpg  #only needed one time to sync the server's gpg key
slackpkg update   #checks the server to see what updates are out since the last check
slackpkg upgrade-all   #provides you with a dialog box of all potential upgrades and allows you to select which ones to install
It went off smoothly. Thanks everyone.
 
  


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] Fresh install of slackware 14.1 and cannot install mayan boot splash Bertman123 Slackware 6 09-28-2013 06:48 AM
Just a fresh install of Slackware 14.0 Nmeumonic Slackware 3 09-22-2013 12:24 AM
Fresh Slackware 10.2 install... JesusFreak84 Linux - Laptop and Netbook 3 12-11-2005 03:09 PM
Updating redhat after fresh install of shrike? spfdz Linux - Newbie 2 09-18-2005 11:13 PM
Updating to Hoary vs fresh install? ChrisTheGeek Ubuntu 6 04-11-2005 12:32 PM

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

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