LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-06-2010, 06:26 PM   #1
vttay03
LQ Newbie
 
Registered: Dec 2009
Location: USA
Distribution: Slackware64 14.0
Posts: 29

Rep: Reputation: 3
slackpkg + security updates


Hi all,

I'm new to Slackware (been running Ubuntu for awhile but wanted to really start and understand Linux). The question I have pertains to updates - I know there's been a ton of questions asked on this but I'll tell you where I'm currently at. I've subscribed to the slackware-security mailing list and received an email pertaining to a security update. However, after commenting out a mirror in /etc/slackpkg/mirrors and running the following commands, I get no indication that any packages have updates available.

Code:
slackpkg update
slackpkg check-updates
I thought at first the update just wasn't available yet since maybe the mailing list was the first to be notified before it was actually released. But I've waited a day or so and am still not seeing any updates as being available. I know I can update the package through the upgradepkg command but would rather use slackpkg after researching a bit. Can anyone provide information as to why I'm not seeing the update when using slackpkg? Or do I still need to wait a day or so before it shows up? I also find it strange that there aren't any updates period when I run slackpkg. I would have thought there had been some since the release of 13.0 back in August. Any help on this topic is appreciated.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-06-2010, 06:44 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,333

Rep: Reputation: Disabled
Well, after running
Code:
slackpkg update
the command
Code:
slackpkg check-updates
will never output anything because all that does is checking if there is a newer ChangeLog.txt on the server... and the first command has just downloaded the latest ChangeLog.txt for you.

What you should run is
Code:
slackpkg check-updates
as a daily cron job which will warn you when there are updates (like: patches that get released for a previously released version of Slackware).

When you notice that there are updates, you run
Code:
slackpkg update
slackpkg upgrade-all
slackpkg install-new
The first command updates your local database of available package versions. The second one upgrades all your packages that need upgrading because the server has a different (note: not per sť higher) version. The third command is usually not needed when you run a stable Slackware release (no new packages are released, only patches to existing programs that plug security holes) but you can run it anyway for completeness sake - it will install every package that got added to Slackware since slackpkg last checked.

Eric
 
3 members found this post helpful.
Old 01-06-2010, 06:51 PM   #3
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 267

Rep: Reputation: 72
I think you misunderstood the "check-updates" option... it merely checks if there are updates in the changelog.
What you need to do (and I assume you are running slackware 13) is this:
Code:
slackpkg update
slackpkg upgrade patches
All package upgrades in the stable release are added in the patches tree.

If you place those 2 commands in a script and call it regularly (I recommend a cron job) you can expect your slackware to be updated with any security patch that might become available.

EDIT: I took too long (stupid mobile internet *kicks hsdpa modem*) and Alien Bob beat me to it. Do what he said as it will work even if you are running slackware-current.

Last edited by Slax-Dude; 01-06-2010 at 07:01 PM.
 
Old 01-06-2010, 06:58 PM   #4
vttay03
LQ Newbie
 
Registered: Dec 2009
Location: USA
Distribution: Slackware64 14.0
Posts: 29

Original Poster
Rep: Reputation: 3
Ahhhhh....thanks to both of you. I was basically cancelling myself out by running

Code:
slackpkg update
before

Code:
slackpkg check-updates
After running

Code:
slackpkg upgrade-all
I see the security update I was referring to in the first post. And I agree, I'll setup a cron job that does this daily to keep my system updated and secure.
 
Old 01-09-2010, 01:55 PM   #5
agi93
Member
 
Registered: Jan 2010
Posts: 101

Rep: Reputation: 17
Alien Bob, if I have a script with the following contents:

Code:
#!/bin/sh
slackpkg check-updates
and I name it check-updates.sh and symlink it to /etc/cron.daily, where will I see the output? How am I to know when updates are available?

If it's supposed to send the results some place, then how can I make it so I either see the message at login or in every console/terminal when the script runs (preferably at login)?
 
Old 01-09-2010, 01:58 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,333

Rep: Reputation: Disabled
Make sure your account receives email sent to the root account.

Eric
 
Old 01-09-2010, 02:03 PM   #7
agi93
Member
 
Registered: Jan 2010
Posts: 101

Rep: Reputation: 17
It doesn't look like my root account is getting any emails. There haven't been any updates, but a run of slackpkg check-updates shows "No news is good news". Are emails only sent when updates come?
 
  


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
[SOLVED] Slackware security & slackpkg ... joeBuffer Slackware 9 08-06-2009 12:59 PM
Security Updates the trooper Suse/Novell 2 11-16-2006 07:17 AM
Security Updates jakebhoy Mandriva 2 09-04-2005 07:41 PM
only security updates rafc Debian 2 06-26-2004 01:27 PM
security updates Tigger Linux - Security 1 09-16-2003 10:38 PM


All times are GMT -5. The time now is 03:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration