LinuxQuestions.org
Help answer threads with 0 replies.
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 02-16-2011, 07:11 PM   #1
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Rep: Reputation: 35
Upgrading Q


I am about to upgrade 13.0 to 13.1

I would like to know if there is a way to make sure the package I am upgrading to have the latest security patches.

Should I download the 13.1 packages and then replace them with packages from security advisories where they exist? Or will they already be up to date in the tree?


Also, is there a simple way to download the newer versions of packages only for the packages I have installed?

Disclaimer: I have searched but could not find a simple answer for my first query.
 
Old 02-16-2011, 07:45 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
I would have to say pretty much install the latest updates that drop. As far as verifying, you could verify against the slackware repositories and/or from the authors of the programs themselves.
 
Old 02-16-2011, 07:46 PM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
I also came across this:

http://slackware.mirrors.tds.net/pub....1/UPGRADE.TXT

Don't know if there is any useful information in there for you...
 
Old 02-16-2011, 10:30 PM   #4
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Original Poster
Rep: Reputation: 35
Hi Corp, as I said already checked upgrade.txt

That is written assuming a full install, while I have quite a minimal install.

I only want to upgrade the packages I have installed, and wonder how to do that.

While upgradepjg */*.txz, it seems it would make sense in my case as long as I do the glibc and other core stuff first.


The second part of my question is asking if I can avoid downloading the out of date versions that ship with 13.1 and have vulnerabilities as well as downloading the packages, and just download the updated version straight away.


For example, sudo-1.7.2p6-i486-1.txz ships with 13.1 but has a security problem and sudo-1.7.4p6-i486-1.txz has been released to fix it.

I would prefer to avoid downloading both, but is there any easy way to do that?
 
Old 02-16-2011, 10:58 PM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by Josh000 View Post
Hi Corp, as I said already checked upgrade.txt

That is written assuming a full install, while I have quite a minimal install.

I only want to upgrade the packages I have installed, and wonder how to do that.

While upgradepjg */*.txz, it seems it would make sense in my case as long as I do the glibc and other core stuff first.


The second part of my question is asking if I can avoid downloading the out of date versions that ship with 13.1 and have vulnerabilities as well as downloading the packages, and just download the updated version straight away.


For example, sudo-1.7.2p6-i486-1.txz ships with 13.1 but has a security problem and sudo-1.7.4p6-i486-1.txz has been released to fix it.

I would prefer to avoid downloading both, but is there any easy way to do that?
You didn't specify in your original post that you checked upgrade.txt

As far as upgrading the packages installed, I am trying to relate how I do it in fedora; normally, I run a yum update and it takes care of that. I was thinking maybe you can do the same in slackware? I never worked with it, therefore I thought I would give you ideas on how to do it.
 
Old 02-16-2011, 11:01 PM   #6
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
I think you may be able to accomplish this with slackpkg if you forgo the install-new part (and then just see if there are any new packages that you might legitimately need) -- you just have to change the mirror to 13.1. However you should still follow UPGRADE.TXT roughly even with slackpkg (and be sure to upgrade slackpkg *first* or you will get gpg/md5 errors). Otherwise you could script something to grab packages that you already have, but that's a bit of work.

Last edited by T3slider; 02-16-2011 at 11:02 PM.
 
Old 02-17-2011, 12:02 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Beware the libata switchover! As mentioned in UPGRADE.TXT, there are detailed instructions in CHANGES_AND_HINTS.TXT.

Personally, I prefer to change steps 3,4,5 and 6 in UPGRADE.TXT to:

Edit /etc/slackpkg/mirrors to point to a 13.1 mirror.
Edit /etc/slackpkg/blacklist to blacklist kernel versions I do not use.
'slackpkg download slackpkg'
'upgradepkg /var/cache/packages/slackware/ap/slackpkg-2.81.1-noarch-1.tgz'
(If you replace the old slackpkg and blacklist files with the new versions then:
Edit /etc/slackpkg/mirrors to point to a 13.1 mirror.
Edit /etc/slackpkg/blacklist to blacklist kernel versions you do not use.)
'slackpkg update'
'slackpkg install-new'
'slackpkg upgrade-all' (After this you can start to deal with the new config files; slackpkg really helps here. 'slackpkg new-config' will give you have another chance to go through the list and process the new config files)
'slackpkg clean-system'

If you use slackpkg, then security fixes in /patches should be included.

It is also worthwhile to do 'cd /etc; find . -name "*.new" -print'. There are sometimes some new config files that slackpkg ignores e.g. /etc/passwd.new
 
Old 02-17-2011, 02:43 PM   #8
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Original Poster
Rep: Reputation: 35
The libata switchover doesn't affect me as I will stick to my own kernel, and I have newer hardware that isn't affected anyhow.

I have to say I have never really used slackpkg, as I have not needed it with my minimal install.

It is now somewhat official in the distro, right?

If it updates only the packages I have installed as well as the latest security patches then it seems perfect.


Thanks for the tip on config files, I know I have to be wary about that.
 
Old 02-17-2011, 03:20 PM   #9
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Yep slackpkg is now official. It's a very easy way to upgrade security patches. Get on the slackware security mailing list and you will be emailed whenever there are updates.
 
  


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
upgrading 10.2 jonabyte Slackware 5 08-03-2008 11:38 PM
Upgrading from 9.1 belorion SUSE / openSUSE 2 05-23-2006 01:15 PM
Upgrading to Badger! Can't login anymore after upgrading? BellaSha87 Ubuntu 1 12-03-2005 12:09 PM
upgrading (or not upgrading) glibc richarde Slackware 9 09-12-2005 12:56 AM
upgrading from 9.2 to 10 TheScot Mandriva 2 06-28-2004 04:03 PM

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

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