LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackpkg check-updates doesn't find any upgrade to do (http://www.linuxquestions.org/questions/slackware-14/slackpkg-check-updates-doesnt-find-any-upgrade-to-do-4175493417/)

freakTux 02-02-2014 04:11 AM

Slackpkg check-updates doesn't find any upgrade to do
 
Hi all guys...I have a problem with slackpkg...as usual I use it to keep my distro updated...but since my new slackware installation I have noticed that even if a package has been upgraded in the changelog if I give:
Code:

slackpkg update gpg
slackpkg update
slackpkg check-updates

it says me "No news is good news"...even if I have got some package to upgade...in the end I have to upgade every package looking at the changelog and wrtiting for every package:
Code:

slackpkg upgrade PACKAGE
what can be my problem?

ReaperX7 02-02-2014 04:17 AM

What mirror are you using?

freakTux 02-02-2014 04:26 AM

Quote:

Originally Posted by ReaperX7 (Post 5109589)
What mirror are you using?

Now (just for test) I use an australian mirror:
Code:

ftp://ftp.cc.swin.edu.au/slackware/slackware64-current/
I the past I used mirrors from france (near my Italy)...

ReaperX7 02-02-2014 05:01 AM

Did you also run

Code:

slackpkg upgrade-all
By chance?

freakTux 02-02-2014 08:03 AM

Quote:

Originally Posted by ReaperX7 (Post 5109603)
Did you also run

Code:

slackpkg upgrade-all
By chance?

I didn't tried it because I had just a couple package to upgrade (I have installed the current not much time ago) and I have upgraded them with slackpkg upgrade PACKAGE...But now I cannot try upgrade-all because I have all the package upgraded...
What you suggest?

ReaperX7 02-02-2014 02:48 PM

If you have all the updates then it won't register there are any.

If you need to see which packages are installed run:

Code:

pkgtool
And if you need to select any SBo packages to remove or list try running:

Code:

slackpkg clean-system

freakTux 02-02-2014 05:09 PM

Quote:

Originally Posted by ReaperX7 (Post 5109815)
If you have all the updates then it won't register there are any.

If you need to see which packages are installed run:

Code:

pkgtool

I know that I can list programs with pkgtool...My question is about a strange behavior of my slackpkg that it seems like cannot find updates when I run
Code:

slackpkg check-updates


Quote:

And if you need to select any SBo packages to remove or list try running:

Code:

slackpkg clean-system

I found this tip very useful..thanks for this...

ReaperX7 02-02-2014 05:54 PM

Check-updates should work the same as grabbing the complete update list using the update flag. If it can't find anything newer than the current listing then it spits out a notice about not finding anything.

Habitual 02-03-2014 08:11 AM

I wonder what the /etc/slackpkg/blacklist file looks like on your system.

lems 02-03-2014 10:20 AM

Maybe I misunderstand how slackpkg works, but aren't you supposed to run check-updates before running an update? Doesn't an update also download/get the new ChangeLog.txt (saved in /var/lib/slackpkg)?

I just tried this: previous mirror: file:///home/slackware-14.1/. I then changed it to a http Slackware current mirror, ran check-updates and got `News on ChangeLog.txt'. When I then ran `slackpkg update' followed by a check-update (with the -current mirror), it told me that there are no news. When I changed it back to the local 14.1 directory, ran check-updates (without having run update before), it told me that there are news. When I then run update, it will tell me again that there are no news. And so on.

chrisretusn 02-04-2014 06:38 AM

From the man page:
Code:

      Slackpkg can be used to upgrade the whole distribution.
      The usual way is to do:

            # slackpkg update
            # slackpkg install-new
            # slackpkg upgrade-all
            # slackpkg clean-system

If you know it's all updates, then simply running...
Code:

# slackpkg update
# slackpkg upgrade-all

...will do the job.

Quote:

Hi all guys...I have a problem with slackpkg...as usual I use it to keep my distro updated...but since my new slackware installation I have noticed that even if a package has been upgraded in the changelog if I give:
Code:

slackpkg update gpg
slackpkg update
slackpkg check-updates


Were are you checking ChangeLog.txt? From the Slackware site? http://www.slackware.com/changelog/

If you run "slackpkg update' and it reports back:

Code:

No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?

Then there are no changes. The local copy of ChangeLog.txt and the servers copy are the same. One possible reason could be the server you are using has not updated yet.

Running 'slackpkg check-updates' after slackpkg update' will normally always show 'No news is good news'.

Use "update gpg" should only been needed once. Most of the time, in my experience, the gpg modifier is not needed at all. The first run with "update" will update the Slackware key.

Keep in mind the slackpkg is only good for Slackware packages that are part of the Slackware distribution. Added packages will not be looked at by slackpkg.

The slackpkg man page is your friend. :)

freakTux 02-05-2014 03:03 AM

Ok...solved...the problem was that I had misunderstood what slackpkg check-updates...I tought that check-updates checks updates from the local changelog previously updated with slackpkg update...but instead check-updates check if the local copy of changelog and the remote copy are different (upgrades available) or the same ("no news is good news")...thanks all!


All times are GMT -5. The time now is 03:27 PM.