LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Correct security update procedure (http://www.linuxquestions.org/questions/slackware-14/correct-security-update-procedure-4175441324/)

swanstomp 12-13-2012 11:01 AM

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/

linuxxer 12-14-2012 02:49 PM

Quote:

Originally Posted by swanstomp (Post 4848589)
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

frankbell 12-14-2012 10:03 PM

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.

hitest 12-14-2012 10:59 PM

Quote:

Originally Posted by frankbell (Post 4849646)
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.

Alien Bob 12-15-2012 09:13 AM

Quote:

Originally Posted by swanstomp (Post 4848589)
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


All times are GMT -5. The time now is 11:41 AM.