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 04-05-2009, 08:14 AM   #1
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Rep: Reputation: 40
updating existing packages in slackware


Previously using zypper update in the terminal, i can update my SUSE.

i google online and find that i can update using
Code:
slackpkg update
but it prompts command not found. Can i know what are the command to update in slack?

thanks
 
Old 04-05-2009, 08:17 AM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
You have to install slackpkg if you want, you can either get it from the /extra of slackware 12.2 DVD or here:
http://sourceforge.net/project/showf...ease_id=596656
use 'installpkg' to install it.
 
Old 04-05-2009, 08:46 AM   #3
jrecortel
Member
 
Registered: Sep 2008
Location: Philippines
Distribution: slackware
Posts: 123

Rep: Reputation: 19
Quote:
Originally Posted by vitalstrike82 View Post
Previously using zypper update in the terminal, i can update my SUSE.

i google online and find that i can update using
Code:
slackpkg update
but it prompts command not found. Can i know what are the command to update in slack?

thanks
have you run slackpkg as root? a full install of slackware 12.2 already include the slackpkg.in root, type:
Code:
# slackpkg update
# slackpkg upgrade-all
 
Old 04-05-2009, 08:50 AM   #4
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 421

Rep: Reputation: 58
Quote:
Originally Posted by vitalstrike82 View Post
Code:
slackpkg update
but it prompts command not found. Can i know what are the command to update in slack?

thanks
Were you logged in as root when you issued the command? Try the same command as root and see what happens.

If the slackpkg responds most likely you'll need to configure a mirror site. The file to configure is:

/etc/slackpkg/mirrors

You can learn more about slackpkg in the man pages.

Code:
man slackpkg
man slackpkg.conf
Enjoy!
 
Old 04-05-2009, 09:01 AM   #5
jrecortel
Member
 
Registered: Sep 2008
Location: Philippines
Distribution: slackware
Posts: 123

Rep: Reputation: 19
Quote:
Originally Posted by Chuck56 View Post
If the slackpkg responds most likely you'll need to configure a mirror site. The file to configure is:

/etc/slackpkg/mirrors

You can learn more about slackpkg in the man pages.
yes, dont forget to set which mirror to use.uncomment only one mirror and you're ready to go
 
Old 04-08-2009, 09:50 AM   #6
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Original Poster
Rep: Reputation: 40
Yeap... i tried it as root.
I guess it was not install into my machine.

Thanks for the help.. I will try to install it.
 
Old 04-09-2009, 08:30 AM   #7
nutronix
Member
 
Registered: Jan 2003
Location: montreal
Distribution: Slackware and XUbuntu
Posts: 110
Blog Entries: 1

Rep: Reputation: 17
Hi! vitalstrike82 , you can get the package here ;http://packages.slackware.it/search....t=1&q=slackpkg

Once installed , read the manual page (man slackpkg) cd to /etc/slackpkg and uncomment a mirror nearest you in "mirrors" with a text editor ,as root of course , then "slackpkg update gpg" followed by "slackpkg update" and "slackpkg upgrade-all"
good luck and dont forget to do a bit of reading
 
Old 05-01-2009, 03:49 PM   #8
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Original Poster
Rep: Reputation: 40
hi, i have read the slackpkg man pages and i have enter this command: slackpkg update to update the list.
However i want to see what are the packages to install and where can i see the list of packages after i use the slackpkg update?

Thanks
 
Old 05-01-2009, 04:08 PM   #9
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 315

Original Poster
Rep: Reputation: 40
Hi, i have find the way how it works. Thanks
 
Old 05-01-2009, 04:12 PM   #10
jrecortel
Member
 
Registered: Sep 2008
Location: Philippines
Distribution: slackware
Posts: 123

Rep: Reputation: 19
Quote:
Originally Posted by vitalstrike82 View Post
hi, i have read the slackpkg man pages and i have enter this command: slackpkg update to update the list.
However i want to see what are the packages to install and where can i see the list of packages after i use the slackpkg update?

Thanks
issue the command
Code:
#slackpkg upgrade-all
and choose which packages you want to upgrade.
 
Old 05-01-2009, 04:40 PM   #11
the_penguinator
Member
 
Registered: Jan 2009
Location: Canada
Distribution: slackware -current, OpenBSD, OSX
Posts: 161

Rep: Reputation: 20
Quote:
Originally Posted by vitalstrike82 View Post
Previously using zypper update in the terminal, i can update my SUSE.

i google online and find that i can update using
Code:
slackpkg update
but it prompts command not found. Can i know what are the command to update in slack?

thanks
man upgradepkg

get the updated packages
check the md5sums
#upgradepkg foo.tgz

works for me
cheers
 
Old 05-02-2009, 04:53 AM   #12
pg99
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73

Rep: Reputation: 18
what are people's views on doing this automatically, for example by putting something like this in /etc/cron.daily
Code:
#!/bin/sh
/usr/sbin/slackpkg -dialog=off -batch=on -default_answer=no update
/usr/sbin/slackpkg -dialog=off -batch=on -default_answer=yes upgrade-all
I guess you would need to use the slackpkg blacklist first for any packages you know you don't want updated, but apart from that what other drawbacks might there be?
 
Old 05-02-2009, 07:24 AM   #13
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware
Posts: 298

Rep: Reputation: 50
have you tried upgradepkg?

# upgradepkg [options] newpackagename
or
# upgradepkg [options] oldpackagename%newpackagename

There's a man page
 
Old 05-02-2009, 07:36 AM   #14
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 421

Rep: Reputation: 45
Quote:
Originally Posted by vonbiber View Post
have you tried upgradepkg?

# upgradepkg [options] newpackagename
or
# upgradepkg [options] oldpackagename%newpackagename

There's a man page
In this way you must menually download all the new packages to local disk. rsync is a good way to do this but then you have more spaces to settle all the packages. slackpkg update && slackpkg upgrade-all do all the things automatically for you.
 
Old 05-02-2009, 02:31 PM   #15
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
Alien's rsync_slackware_patches.sh, along with others are also useful. See http://www.slackware.com/~alien/tools/.

I use slackpkg, but I never upgrade blindly. I read the Changelog and the security update page (if available) first. I don't need to run "slackpkg update" all the time because I get an email (or new rss feed item) when an update it available.
 
  


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
Updating Non-Stock Packages After a Slackware Release Woodsman Slackware 6 12-09-2008 06:04 PM
updating existing installation b123coder Red Hat 2 04-08-2006 07:19 AM
Trying to recompile existing packages or new packages with optimization nx5000 Debian 6 02-28-2006 04:18 PM
Updating Slackware Packages javamdk Slackware 11 03-18-2005 07:37 AM
Updating packages from redhat - insatlling *.hdr packages jomy Linux - Networking 1 01-18-2005 08:36 AM


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