LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   What is the best way to upgrade software? (https://www.linuxquestions.org/questions/slackware-14/what-is-the-best-way-to-upgrade-software-232630/)

zwyrbla 09-19-2004 04:13 PM

What is the best way to upgrade software?
 
My question is how exactly do I go about upgrading software to a newer version. For instance my slakckware intsall came with gaim 7.3 or whatever and I want to upgrade to the new 1.0 should I uninstall the old version first? and if so how do I uninstall it? or can I just run the install for the new version and it will autodetect the old version. any help would be great.

gbonvehi 09-19-2004 04:17 PM

Well, my favourite way is using slapt-get (software.jaos.org), other prefer swaret (swaret.sourceforge.net), there are some others that do the same kind of automatic update. Also, you can browse trough a slackware mirror and download and upgrade the packages you want or compile them yourself.

You uninstall a program by typing: removepkg <packagename>
You install one with: installpkg <packagename>
Upgrade: upgradepkg <oldpackagename>%<newpackagename>

or simply using: pkgtool
that's a dialog based tool for managing packages

"or can I just run the install for the new version and it will autodetect the old version" Nope, you have to remove the package first or upgrade it with the respective command. If you want a package that's not on a slackware mirror try: linuxpackages.net

zwyrbla 09-19-2004 05:38 PM

ok I have slapt-get installed but how do i know what a package name is such as the GAIM that came wiht slackware 10?

gbonvehi 09-19-2004 07:43 PM

you can use:
Code:

slapt-get --search something
change something to gaim :)
or go to /var/adm/packages and browse the files or use pkgtool to see the list of packages.

zwyrbla 09-19-2004 08:32 PM

this is perfect thanks bunches

FreakboY 10-27-2004 01:39 AM

can you give me an example on how to use...
Upgrade: upgradepkg <oldpackagename>%<newpackagename>

don't know what you are refering to oldpkgname%newpkgname..
can you please explain it to me!??

Thank You!

Doktor Prokt 10-27-2004 02:11 AM

Quote:

Originally posted by FreakboY
can you give me an example on how to use...
Upgrade: upgradepkg <oldpackagename>%<newpackagename>

don't know what you are refering to oldpkgname%newpkgname..
can you please explain it to me!??

Thank You!

Just use

Code:

upgradepkg <pkgname>
If you don't use slapt-get or something similar you should fetch updates via Slackware-current.

You'll find a new version of gaim (1.02 I think) here:

ftp://ftp.slackware.com/pub/slackwar...slackware/xap/


download it and do a pkgupdate.
Read the pkgupdate man page for more information.

gbonvehi 10-27-2004 03:03 AM

I guess Doktor Prokt referred as pkgupdate for upgradepkg.

FreakboY 10-27-2004 10:08 AM

got you on that...
it is really easy to update pkgs!

mcd 10-27-2004 04:22 PM

actually, i like slackpkg for this kind of stuff. i just type

slackpkg update gaim

(might be upgrade, i forget) or if you don't have it,

slackpkg install gaim


works like a charm.

FreakboY 10-27-2004 05:07 PM

great! thanks!

AxelFendersson 10-27-2004 06:32 PM

Quote:

Quoth Doktor Prokt:
If you don't use slapt-get or something similar you should fetch updates via Slackware-current.
Careful doing that though. If it depends on libraries from another package, and that other package has also been changed in current, you may find that it doesn't work any more.

If this happens, you can either try to figure out the broken dependencies and upgrade those as well, or you can see if there's an up-to-date version of the package you're trying to upgrade over on LinuxPackages.net, which ought to run on an unmodified stable release.

Or you could try removing the old version with removepkg, and compiling the new one from source.

mcd 10-27-2004 07:22 PM

real quick, here's the link to the slackpkg homepage, where you can find a little more information (if you've never used it you may have to select a mirror and upgrade slackpkg itself before you can upgrade gaim).

http://slackpkg.sourceforge.net/


All times are GMT -5. The time now is 11:35 PM.