Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-05-2009, 08:14 AM
|
#1
|
|
Member
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 305
Rep:
|
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
but it prompts command not found. Can i know what are the command to update in slack?
thanks
|
|
|
|
04-05-2009, 08:17 AM
|
#2
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,706
|
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.
|
|
|
|
04-05-2009, 08:46 AM
|
#3
|
|
Member
Registered: Sep 2008
Location: Philippines
Distribution: slackware
Posts: 123
Rep:
|
Quote:
Originally Posted by vitalstrike82
Previously using zypper update in the terminal, i can update my SUSE.
i google online and find that i can update using
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
|
|
|
|
04-05-2009, 08:50 AM
|
#4
|
|
Member
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 396
Rep:
|
Quote:
Originally Posted by vitalstrike82
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!
|
|
|
|
04-05-2009, 09:01 AM
|
#5
|
|
Member
Registered: Sep 2008
Location: Philippines
Distribution: slackware
Posts: 123
Rep:
|
Quote:
Originally Posted by Chuck56
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 
|
|
|
|
04-08-2009, 09:50 AM
|
#6
|
|
Member
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 305
Original Poster
Rep:
|
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.
|
|
|
|
04-09-2009, 08:30 AM
|
#7
|
|
Member
Registered: Jan 2003
Location: montreal
Distribution: Slackware and XUbuntu
Posts: 104
Rep:
|
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
|
|
|
|
05-01-2009, 03:49 PM
|
#8
|
|
Member
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 305
Original Poster
Rep:
|
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
|
|
|
|
05-01-2009, 04:08 PM
|
#9
|
|
Member
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 305
Original Poster
Rep:
|
Hi, i have find the way how it works. Thanks
|
|
|
|
05-01-2009, 04:12 PM
|
#10
|
|
Member
Registered: Sep 2008
Location: Philippines
Distribution: slackware
Posts: 123
Rep:
|
Quote:
Originally Posted by vitalstrike82
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.
|
|
|
|
05-01-2009, 04:40 PM
|
#11
|
|
Member
Registered: Jan 2009
Location: Canada
Distribution: slackware -current, OpenBSD, OSX
Posts: 144
Rep:
|
Quote:
Originally Posted by vitalstrike82
Previously using zypper update in the terminal, i can update my SUSE.
i google online and find that i can update using
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
|
|
|
|
05-02-2009, 04:53 AM
|
#12
|
|
Member
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73
Rep:
|
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?
|
|
|
|
05-02-2009, 07:24 AM
|
#13
|
|
Member
Registered: Apr 2009
Distribution: slackware
Posts: 293
Rep:
|
have you tried upgradepkg?
# upgradepkg [options] newpackagename
or
# upgradepkg [options] oldpackagename%newpackagename
There's a man page
|
|
|
|
05-02-2009, 07:36 AM
|
#14
|
|
Member
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 409
Rep:
|
Quote:
Originally Posted by vonbiber
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.
|
|
|
|
05-02-2009, 02:31 PM
|
#15
|
|
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,439
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:18 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|