LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2008, 04:08 AM   #1
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Rep: Reputation: 18
I think I should update


Hi,

I have been running Slackware 12 for a little while and haven't done an update AT ALL!

Code:
$ uname -a
Linux vulcan 2.6.21.5-smp #2 SMP Tue Jun 19 14:58:11 CDT 2007 i686 AMD Sempron(tm) Processor 3000+ AuthenticAMD GNU/Linux
How should I go about updating (and keeping up to date)? What are the Slackware procedures?

Thanks
 
Old 03-09-2008, 04:36 AM   #2
2.718281828
Member
 
Registered: Jan 2004
Distribution: Arch, formerly Slackware
Posts: 43

Rep: Reputation: 15
Just download the security updates from here and you'll be fine. You could keep up with Slackware-current but only if you feel like testing new packages and possibly breaking your system once in a while.

Also, you might want to subscribe to the slackware-security mailing list.

Last edited by 2.718281828; 03-09-2008 at 04:38 AM.
 
Old 03-09-2008, 04:46 AM   #3
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
I don't think I'd like Slackware-current. I like the fact that Slackware is so stable and I wouldn't like to break it. VirtualBox is good enough for me to check out new packages.

So do I just install the packages I want to update the same way I install packages (installpkg). Looking at the descriptions of the packaged on the site you recommenced it does not say these are updates. Do you just know these guys host updates?

Thanks for your help.
 
Old 03-09-2008, 04:51 AM   #4
2.718281828
Member
 
Registered: Jan 2004
Distribution: Arch, formerly Slackware
Posts: 43

Rep: Reputation: 15
You install them using the upgradepkg command, which uninstalls the old version first but otherwise works the same was as installpkg. You can also download those files from slackware.com if you want, but the link I gave is one of the official mirrors and it's quite a bit faster. That mirror site is mentioned in the slackware-security emails.

Occasionally the upgrade instructions involve a little more than just typing "upgradepkg package_name.tgz". Mostly things like, if you're upgrading apache and currently running the old version of apache, you'll need to restart it afterwards or something like that. You could check the slackware-security mailing list archives and look over the emails because at the bottom of each email they list installation instructions.
 
Old 03-09-2008, 05:18 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Make sure you read the ChangeLog; there's a some new kernel packages in that lot, so if you just blindly do a upgradepkg *.tgz, you probably won't be able to boot afterwards.
 
Old 03-09-2008, 05:19 AM   #6
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
This distribution amazes me every time I try to learn something new. It is so simple! (I don't like when the operating system thinks it knows what you are thinking and does stuff for you. Slackware does not do that!)

As my first attempt I want to update Thunderbird (from 2.0.0.4 to 2.0.0.12). I downloaded it from the link you provided (because slackware.com was pretty slow) but the MD5 is different to the one in slackware-security archive. Is this a problem?
 
Old 03-09-2008, 05:24 AM   #7
2.718281828
Member
 
Registered: Jan 2004
Distribution: Arch, formerly Slackware
Posts: 43

Rep: Reputation: 15
Yes, the MD5 sums are supposed to match. I downloaded that package just now and it worked for me though. Did you run "md5sum mozilla-thunderbird-2.0.0.12-i686-1.tgz", i.e., do the checksum on the tgz file? It should give you 0c5bfc8c508e128b13c88311a6889879 according to the mailing list archive.

And pwc101 brought up a good point that I had forgotten -- be sure to follow the directions when upgrading your kernel your you'll have problems.

Last edited by 2.718281828; 03-09-2008 at 05:25 AM.
 
Old 03-09-2008, 05:44 AM   #8
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
OK, I'll take care with the kernel. As a side note I will be upgrading my 2.6.21.5-smp soon. Playing with the compilation in a virtual machine.

I got the file again and the md5sum is good now (it was 3de6e96532f2ce6949e18b113aa5031e the first time). Upgrade was quick and easy. I have subscribed to slackware-security.

Thanks for your help.
 
Old 03-09-2008, 05:52 AM   #9
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
Another question. Looking at the kernel exploit fix http://slackware.com/lists/archive/v...ecurity.562341

Keeping in mind what pwc101 said the change log does not tell me (might tell you) that there is any danger in doing the update. Is there? Can apply this update even though I have not applied any patched in 6 months (can I jump over the other patches)?

Quote:
Originally Posted by pwc101 View Post
Make sure you read the ChangeLog; there's a some new kernel packages in that lot, so if you just blindly do a upgradepkg *.tgz, you probably won't be able to boot afterwards.
Also, can you point me to one of these so I can have a look (I'm not sure what I am looking for in the change log).

Thanks
 
Old 03-09-2008, 06:02 AM   #10
2.718281828
Member
 
Registered: Jan 2004
Distribution: Arch, formerly Slackware
Posts: 43

Rep: Reputation: 15
Well, yes, the ChangeLog doesn't say a whole lot about the new kernel actually. It just mentions that "If you use lilo, don't forget to run it again after the upgrade." I just looked at the email that had been sent out about the kernel upgrade and that's about all it said too. So just run upgradepkg for the new kernel, then run lilo (with no command line options) and if lilo doesn't complain about any fatal errors, you should be fine. It's actually a bit simpler than I had expected but that's Slackware for you I guess. I've forgotten to run lilo in the past and my system wouldn't boot, but then I always just boot using my Slackware 12 DVD and it tells you how to boot into your system from there. So even if you forget to run lilo, it still shouldn't be that hard to boot up from a CD or DVD and try again.

Also, it shouldn't make any difference what order you apply the patches in. You should be able to just upgrade everything, run lilo and reboot. (And the only reason you'd need to reboot is if you want to start using the new kernel.)

Last edited by 2.718281828; 03-09-2008 at 06:04 AM.
 
Old 03-09-2008, 06:10 AM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
I use slackpkg. I look at the changelog more or less every week, see if there any changes, and if so, run (as root):

Code:
# slackpkg update
# slackpkg upgrade-all
No problems. After the recent kernel patches, slackpkg asked if it should run lilo - so that was taken care of.
 
Old 03-09-2008, 06:28 AM   #12
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,350

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
If updating from slackware-current using slackpkg I would suggest ( after consulting the changelog ):
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
Using install-new will add any new packages, of which there are now quite few.
Using clean-system will remove any obselete packages, (and also any custom packages you have added, so be careful!)

I am a convert to slackpkg. The latest version is even able to handle reversions, as I discovered on a recent update.
My warm thanks to PiterPunk for this excellent tool!

Just a reminder, I suggest that you always update the glibc and the kernel packages ( the kernel itself + modules + headers + source ) first. I do this manually and have these packages blacklisted in my /etc/slackpkg/blacklist file. This is probably unnecessary as slackpkg appears to do this for you anyway.

Last edited by allend; 03-09-2008 at 06:35 AM.
 
Old 03-09-2008, 06:39 AM   #13
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by 2.718281828 View Post
And the only reason you'd need to reboot is if you want to start using the new kernel.
So will every kernel patch make a new kernel? If it does will there be the old one to go back to if there is trouble?

In regards to slackpkg update and slackpkg upgrade-all: can I use the combination of both these commands and upgrading individual packages by myself like I did thunderbird just before?

Sorry, too many questions but you guys know so much and are very helpful.

Thank you.
 
Old 03-09-2008, 06:47 AM   #14
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
Yes, you can upgrade individual packages with slackpkg. Even if you do upgrade-all, a box pops up allowing you to select which packages you want or do not want to upgrade.
 
Old 03-09-2008, 09:32 AM   #15
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I use Slackupdate, and then manually install them with 'upgradepkg'. Note that after you install the kernel update, run '/sbin/lilo' if you're using lilo as bootloader.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 10:27 AM
Red Hat Update Agent freezing, unable to update (FC4) Malakye Fedora 1 12-09-2005 08:02 PM
redhat linux update databse's type and utility like windows update services kamii47 Linux - General 1 04-18-2005 05:50 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 11:01 AM
write an update query in shell prompt to update the database in sqlserver suchi_s Programming 2 09-29-2004 07:27 AM

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

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