LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-13-2012, 11:01 AM   #1
swanstomp
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
Correct security update procedure


I'll apologize up front that I'm having a hard time understanding the documentation. The update procedure appears to be:

1) Go to patches/packages[1] and download the *.txz files.
2) Run upgradepkg *.txz

This invariably borks my system. I've just installed Slackware 14.0, after running the above procedure, my system wasn't usable. KDE wouldn't start, Firefox wouldn't start (somehow the sqlite update stopped Firefox from opening) and lots of icons no longer existed. All leading me to assume I did something very wrong, but what?

I've read the CHANGES_AND_HINTS.TXT file, and the UPDATE.TXT file. IIUC, that targets upgrading from Slackware 13.37 to 14.0. I'm just trying to install the security updates.

Sorry for the lack of precise error messages, I reinstalled Slackware and lost this information. Any advice on how to correctly install the updates would be most appreciated. I think I'll install Slackware again in VirtualBox, and carry out updates there first, and only after they succeeded will I apply them to the host!

Thank your very much for your time,
Don.

[1] In my case I am using this mirror:
ftp://ftp.slackware.org.uk/slackware...ches/packages/
 
Old 12-14-2012, 02:49 PM   #2
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 72
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by swanstomp View Post
1) Go to patches/packages[1] and download the *.txz files.
2) Run upgradepkg *.txz

This invariably borks my system. I've just installed Slackware 14.0, after running the above procedure, my system wasn't usable.
To update fresh installed Slackware use slackpkg command.
First select any one mirror, edit /etc/slackpkg/mirrors uncomment (remove '# ') line.

After configuring mirror, first do
Code:
# slackpkg update gpg
After that, to regularly update the system,
Code:
# slackpkg update
# slackpkg upgrade-all
# slackpkg new-config
For more information,
Code:
$ man 8 slackpkg

Last edited by linuxxer; 12-14-2012 at 03:04 PM.
 
Old 12-14-2012, 10:03 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,319

Rep: Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380
I have a little script, which I got from here (I can't find the exact post), for updates:

Code:
#!/bin/bash
slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
It should be left to run unattended, because it needs human input at various steps. I have install-new first because, if upgrade-all doesn't find something it's looking for, it gets confused and goes on strike.

Last edited by frankbell; 12-14-2012 at 10:05 PM.
 
Old 12-14-2012, 10:59 PM   #4
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,122

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Quote:
Originally Posted by frankbell View Post
I have a little script, which I got from here (I can't find the exact post), for updates:

Code:
#!/bin/bash
slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
It should be left to run unattended, because it needs human input at various steps. I have install-new first because, if upgrade-all doesn't find something it's looking for, it gets confused and goes on strike.
Yes, the command slackpkg clean-system enables you to remove obsolete files no longer needed on your system. It will also select packages that you have installed from slackbuilds.org and other packages as well. So have a look before you agree to remove the packages.
 
Old 12-15-2012, 09:13 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,175

Rep: Reputation: Disabled
Quote:
Originally Posted by swanstomp View Post
I'll apologize up front that I'm having a hard time understanding the documentation. The update procedure appears to be:

1) Go to patches/packages[1] and download the *.txz files.
2) Run upgradepkg *.txz

This invariably borks my system. I've just installed Slackware 14.0, after running the above procedure, my system wasn't usable. KDE wouldn't start, Firefox wouldn't start (somehow the sqlite update stopped Firefox from opening) and lots of icons no longer existed. All leading me to assume I did something very wrong, but what?

I've read the CHANGES_AND_HINTS.TXT file, and the UPDATE.TXT file. IIUC, that targets upgrading from Slackware 13.37 to 14.0. I'm just trying to install the security updates.

Sorry for the lack of precise error messages, I reinstalled Slackware and lost this information. Any advice on how to correctly install the updates would be most appreciated. I think I'll install Slackware again in VirtualBox, and carry out updates there first, and only after they succeeded will I apply them to the host!

Thank your very much for your time,
Don.

[1] In my case I am using this mirror:
ftp://ftp.slackware.org.uk/slackware...ches/packages/
To me that looks like you installed the 64-bit Slackware 14.0 and then upgraded using packages from a 32-bit Slackware mirror. Packages for different architectures do not mix.

The procedure you mention should not break your system if you use packages for the same Slackware version and architecture - I use the exact same steps.

This is also a good and helpful read if you want to make it easier for you to keep up to date with patches: http://docs.slackware.com/slackware:...ackage_manager
 
  


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
Bind DNS update procedure in linux ravindert Linux - Newbie 1 09-11-2012 02:49 AM
RHEL update procedure brianmcgee Linux - Enterprise 2 01-31-2008 02:29 AM
Procedure to update / upgrade Debian tommurdock Debian 3 10-23-2006 11:18 AM
Correct installing procedure, but no 3d Accel with ATI 9600XT Darthdan Fedora 2 02-01-2005 01:44 PM
Correct Procedure and Location for Installs Paul Fox Linux - Newbie 12 06-20-2004 12:23 AM


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