LinuxQuestions.org
Help answer threads with 0 replies.
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 01-29-2010, 08:54 AM   #1
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Rep: Reputation: 15
Script to upgrade multiple packages


Ok I got this folder which has got let's say 3 packages:
example1.txz
example2.txz
example3.txz

Of course, there are many more packages actually. But anyway, I want to create a script that will upgrade all packages contained in the folder at once just by running the script.

So any suggestions?
 
Old 01-29-2010, 08:57 AM   #2
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
PHP Code:
cd /directory/with/packages
slackpkg upgrade
-all 
I think that will do it. It's not really a script, but could easily be named I reckon, although it would probably be just as easy to do it manually.
 
Old 01-29-2010, 09:02 AM   #3
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
Ooops. Didn't really know about this command :P. Cheers!
 
Old 01-29-2010, 09:06 AM   #4
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by damgar View Post
PHP Code:
cd /directory/with/packages
slackpkg upgrade
-all 
I think that will do it. It's not really a script, but could easily be named I reckon, although it would probably be just as easy to do it manually.
Yeah, why not just run
Code:
upgradepkg *.t?z
from the directory with the packages?

That would do exactly what you're looking for.
 
Old 01-29-2010, 09:08 AM   #5
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
Yep that did the trick. Thanks...!
 
Old 01-29-2010, 09:14 AM   #6
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
No Problem.

Have a Good One.
 
  


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
Runs Multiple shell script inside a main script using crontab srimal Linux - Newbie 4 10-22-2009 06:19 PM
Query multiple packages john_h_grubb Linux - Newbie 2 03-29-2008 04:44 AM
apt-get upgrade stopped, how can I remove packages before continuing upgrade? [KIA]aze Linux - Newbie 4 05-31-2007 07:49 AM
Removing multiple packages tipaul Slackware 8 08-21-2004 09:45 AM
installing multiple packages btexpress Linux - Software 10 05-24-2004 12:30 AM

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

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