LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-09-2009, 11:13 PM   #1
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Rep: Reputation: 31
Using Slackpkg


Running a production 12.2 Slack server and wanting to make sure I have all the latest security patches applied to it. Started playing with Slackpkg a bit but I'm really not sure want I am wanting to do other than "upgrade".

I chose the 12.2 mirror I wanted to use by editing out that particular file. I then ran "slackpkg update". After that was complete, I am lost from here.

I understand that I can pick and choose what individual files need updating. But what about a system wide entire update. Is it safe to run the "slackpkg upgrade-all" command in production environment??

I guess, I just don't really know WHAT I need updated. I would assume that if those patches are in the /patch directory, than they must be in there for a reason and I should be using them.

Any help?
 
Old 07-09-2009, 11:49 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
upgrade-all will only look for updates to packages that are currently installed, which on stable releases such as 12.2 should only be the stuff in patches. So yes it should be perfectly safe.

But you could just as easily use

Code:
slackpkg upgrade patches
Do be careful to take care of any "*.new" files. Slackpkg will notice these and prompt you on what action to take.

As with any production machine I'd expect you do have backups and it's a good idea to keep a copy of the currently installed package just in case something breaks.
 
Old 07-10-2009, 07:48 AM   #3
zbreaker
Member
 
Registered: Dec 2008
Location: New York
Distribution: Slack -current, siduction
Posts: 253

Rep: Reputation: 29
With the stable release (12.2) as stated "upgrade-all" never caused me any problem. Now if you were asking about doing it in -current that micht be a different story
 
Old 07-10-2009, 09:57 AM   #4
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Thanks for the answers guys. I played around with the "slackpkg upgrade patches" on my laptop, but I'm a littler nervous about doing it on my server.

I don't use any "pre-built" packages for the core of my server. PHP, Apache, Postfix, Dovecot, & Pure-FTP were compiled and installed by me. Mysql was installed as a binary.

I guess since this is the "core" of my server, the "slackpkg upgrade patches" shouldn't really bother anything too much other than to update my current .tgz package set. Just don't want to break anything.
 
Old 07-10-2009, 10:11 AM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Then just manually upgrade the packages you want !

Add yourself to the Slackware security mailing list, so you will stay tuned about updates.
If you look at the changelogs, you will notice there's no TONS of updates, so updating your server will be quick, especially if you rsync the patches directory directly on the server.
http://www.slackware.at/data/slackwa.../ChangeLog.txt

For example, you can write a cronjob which upgradepkg * in a directory XYZ every hour. Then you just have to copy selected packages from the rsync downloads to this directory XYZ. Of course, some of them will require a service restart, but anyway...
 
Old 07-10-2009, 10:33 AM   #6
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Linux.tar.gz View Post
Then just manually upgrade the packages you want !

Add yourself to the Slackware security mailing list, so you will stay tuned about updates.
If you look at the changelogs, you will notice there's no TONS of updates, so updating your server will be quick, especially if you rsync the patches directory directly on the server.
http://www.slackware.at/data/slackwa.../ChangeLog.txt

For example, you can write a cronjob which upgradepkg * in a directory XYZ every hour. Then you just have to copy selected packages from the rsync downloads to this directory XYZ. Of course, some of them will require a service restart, but anyway...
When you say manually upgrade them, are you still talking about Slackpkg or for me to download them by hand and intall them?

Doing a "slackpkg upgrade patches" gives a nice menu that I can select what I want to upgrade. This is, in fact, the same thing as doing it "manually", correct? There is just no cronjob doing the work...
 
Old 07-10-2009, 10:45 AM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
When you say manually upgrade them, are you still talking about Slackpkg or for me to download them by hand and intall them?
Either you can manually download them and then run:
Quote:
upgradepkg nameofthepackage.tgz
Or as stated above, use rsync and cronjob.
 
Old 07-10-2009, 05:31 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by Biggen View Post
Doing a "slackpkg upgrade patches" gives a nice menu that I can select what I want to upgrade. This is, in fact, the same thing as doing it "manually", correct? There is just no cronjob doing the work...
No it will just upgrade the ones you select this one time. There is no cronjob or any automated system (unless you add one).

If you have self-compiled packages that you don't want slackpkg to even list, let alone upgrade, add them to /etc/slackpkg/blacklist and you won't be bothered by them in the list.
 
Old 07-10-2009, 05:48 PM   #9
Biggen
Member
 
Registered: Sep 2004
Location: Panama City Beach FL
Distribution: Slackware 12.2
Posts: 199

Original Poster
Rep: Reputation: 31
Thanks guys for the help. I think I got her figured out now. I'm going to go ahead and subscribe to the security mailing list as well.
 
  


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
i'm new to slackpkg mbvo Slackware 3 03-12-2009 07:44 AM
so after I use slackpkg, I get... Twister512 Slackware 1 11-06-2007 11:26 AM
slackpkg bookie Linux - Newbie 22 05-31-2007 09:49 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM
slackpkg moob8 Slackware 1 10-01-2006 03:46 AM

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

All times are GMT -5. The time now is 09:29 AM.

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