LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg question (http://www.linuxquestions.org/questions/slackware-14/slackpkg-question-4175446463/)

plisken 01-20-2013 08:26 AM

slackpkg question
 
Is there a way to show which packages installed require updating without actually performing any update?

Couldn't see anything, though as I am all to aware, that doesnt mean there isn't something...

Thanks

Alien Bob 01-20-2013 08:31 AM

Try "slackpkg check-updates"

Eric

plisken 01-20-2013 08:46 AM

Quote:

Originally Posted by Alien Bob (Post 4874067)
Try "slackpkg check-updates"

Eric

that is what I thought/remember but doesn't that only check the changelog (think that is the correct term), not actually comparing current package versions to that which is already installed.

that pretty much gives me a "no news is good news" but I know there are packages with updates available, if I do a slackpkg search "packagename"

hitest 01-20-2013 08:59 AM

Quote:

Originally Posted by plisken (Post 4874075)
that is what I thought/remember but doesn't that only check the changelog (think that is the correct term), not actually comparing current package versions to that which is already installed.

that pretty much gives me a "no news is good news" but I know there are packages with updates available, if I do a slackpkg search "packagename"

The command slackpkg check-updates will let you know if there are packages that need updating by checking to see if there is any news on Slackware's changelog.txt. If the command tells you there is news then run slackpkg update.
Eric is one of our main Slackware developers. He answered your question. :)

Alien Bob 01-20-2013 08:59 AM

OK then try this:
Code:

slackpkg -default_answer=n -batch=on -dialog=off upgrade-all
See also "man slackpkg.conf" for the commandline options which are accepted by slackpkg.

In case of the machine I was at, this was the output:
Code:

# slackpkg -default_answer=n -batch=on -dialog=off upgrade-all

Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE

apr-1.4.2-x86_64-2.txz
apr-util-1.3.10-x86_64-1.txz
bind-9.7.3-x86_64-2.txz
ca-certificates-20090814-noarch-1.txz
dhcpcd-5.2.11-x86_64-1.txz
fetchmail-6.3.19-x86_64-1.txz
ghostscript-9.00-x86_64-2.txz
httpd-2.2.17-x86_64-3.txz
libpng-1.4.5-x86_64-1.txz
mozilla-firefox-4.0-x86_64-2.txz
mozilla-thunderbird-3.1.9-x86_64-2.txz
pidgin-2.7.11-x86_64-1.txz
samba-3.5.8-x86_64-1.txz
seamonkey-2.1b3-x86_64-2.txz
seamonkey-solibs-2.1b3-x86_64-2.txz

Total package(s): 15

Do you wish to upgrade selected packages (Y/n)? n

Eric

plisken 01-20-2013 09:05 AM

Quote:

Originally Posted by Alien Bob (Post 4874087)
Code:

slackpkg -default_answer=n -batch=on -dialog=off upgrade-all
Eric


This is EXACTLY what I was looking for, thanks and sorry for the dumb q...


All times are GMT -5. The time now is 10:52 PM.