LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-01-2005, 03:29 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.2 (multilib)
Posts: 1,261

Rep: Reputation: 61
Upgrading packages manually


Now I have a new installation of 10.2 I would like to keep it up to date by keeping an eye on the changelog ( I am wary of using swaret )

The packages listed are:

openssl-0.9.7g-i486-2.tgz
xine-lib-1.03a-i686-1.tgz
thunderbird-1.0.7-686-1.tgz

Do I just run installpkg or do I run upgradepkg?
If I run upgradepkg do I have to find out the name of the old package?

Thanks,

Alan

Last edited by arubin; 11-01-2005 at 03:31 AM.
 
Old 11-01-2005, 04:06 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,454

Rep: Reputation: 7722Reputation: 7722Reputation: 7722Reputation: 7722Reputation: 7722Reputation: 7722Reputation: 7722Reputation: 7722Reputation: 7722Reputation: 7722Reputation: 7722
Use upgradepkg.
Upgradepkg will find the old package, install the newer version of the same package then and remove all the stuff from the old package that is no longer needed.
Upgradepkg will warn you in case it does not find a previous version of the package to be installed. You can read man upgradepkg to learn about the parameters that you can pass to upgradepkg.

Especially, read the last part of that man page (strangely enough called the BUGS section) that talks about how to handle configuration files that a package might use when you upgrade.

Eric
 
Old 11-01-2005, 08:28 AM   #3
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
I recently wrote a tool to help keeping up with slackware updates without slapt-get or swaret. It's actually a fairly simple frontend for wget with ability to compare versions of installed packages to the versions of the packages on the server and download newer versions is desired. It can also be used to find out what package (or which packages) contain certain files. Comes in handy if you have problems with missing libs or such. You can get it here: http://www.student.oulu.fi/~psulasal/scripts/fetchpkg

Place it in for example /usr/local/bin and give it execute rights (chmod a+x fetchpkg). fetchpkg -help will give you some information on how to use it. Fetchpkg will need MIRROR environment variable set pointing to the desired slackware mirror (using alternative sources like linuxpackages is also possible). Here is a script that you can place in /etc/profile.d for that purpose: http://www.student.oulu.fi/~psulasal...ts/fetchpkg.sh (also remember to make it executable as well).

With fetchpkg.sh in /etc/profile.d, you can use the variables defined in it (edit them as needed) to control the MIRROR variable (i.e. MIRROR=$LINUXPACKAGES would use the linuxpackages mirror and MIRROR=$OFFICIAL would use the official slackware mirror).

The script doesn't do any installing/upgrading and you can (should?) run it as a regular user (not root). I originally wrote it for myself, but maybe it's useful for someone else also
 
Old 11-01-2005, 09:14 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
In addition to the above responses, if you are using KDE then look for a nice utility called kslackcheck. The utility will not update anything, but does nicely help you decide which progs need updating for your particular system. The utility also will download the files for you if you want. You still need to run upgradepkg on your own, which, I prefer anyway.
 
Old 11-02-2005, 02:29 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.2 (multilib)
Posts: 1,261

Original Poster
Rep: Reputation: 61
To upgrade manually do you have to know the exact name of the package that is being upgraded for upgradepkg old%new?
 
Old 11-02-2005, 06:18 AM   #6
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
Only if the name of the package has changed as well as version, which has never happened to me. Normally simply upgradepkg [newpackage.tgz] will do.

Last edited by alienDog; 11-02-2005 at 06:19 AM.
 
  


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
Manually Remove Installed Packages from FC4 ieduarte73 Linux - Newbie 2 09-14-2005 10:16 PM
manually updating packages Vindane Slackware 1 03-16-2005 06:50 PM
Manually uninstalling packages jlp1976 Linux - Software 2 03-09-2005 11:15 AM
manually installing packages from LinuxPackages thick_guy_9 Slackware 3 02-02-2005 09:26 PM
Do you install packages manually in addition/instead of apt-get? R00ts Debian 5 07-11-2004 02:31 AM

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

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