LinuxQuestions.org
Visit Jeremy's Blog.
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 09-05-2015, 03:57 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
"slackpkg check-updates" only checks for .TXT files?


The docs states that the "slackpkg check-updates" command will check for any available updates, which....is somewhat true. If I run that command while some updates have been added by Patrick and team I will get this,
Code:
slackpkg check-updates

News on ChangeLog.txt

  [ Repository               ] [ Status               ]
    slackware                    AVAILABLE UPDATES    
    slackpkgplus                    Up to date        
    restricted                      Up to date        
    alienbob                     AVAILABLE UPDATES    
    multilib                        Up to date
However, if I run "slackpkg update" and then run "slackpkg check-updates" I will get back the "No news is good news" and it will appear as if my system is up to date, however doing "slackpkg upgrade-all" will show that there are available packages to be upgraded. Is this how it is intended to work? To only tell the user of new packages/file available and not per specific program (like many other package manager's on linux)? I am finding it a bit misleading/confusing the way it is now.

Last edited by Altiris; 09-05-2015 at 03:59 PM.
 
Old 09-05-2015, 04:04 PM   #2
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 242

Rep: Reputation: 24
slackpkg only checks the ChangeLog, but not a installed packages, because that may lead to longer time to checking updates.
 
Old 09-05-2015, 04:30 PM   #3
Tonus
Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-current
Posts: 450
Blog Entries: 3

Rep: Reputation: 118Reputation: 118
"slackpkg check-updates" only checks for .TXT files?

The check-updates command just tells if it worths downloading the changelogs with the update command.

Save bandwidth is a good thing when you have slow or limited data plan.
 
Old 09-05-2015, 04:37 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,447

Rep: Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711Reputation: 5711
Quote:
Originally Posted by Altiris View Post
The docs states that the "slackpkg check-updates" command will check for any available updates, which....is somewhat true. If I run that command while some updates have been added by Patrick and team I will get this,
Code:
slackpkg check-updates

News on ChangeLog.txt

  [ Repository               ] [ Status               ]
    slackware                    AVAILABLE UPDATES    
    slackpkgplus                    Up to date        
    restricted                      Up to date        
    alienbob                     AVAILABLE UPDATES    
    multilib                        Up to date
However, if I run "slackpkg update" and then run "slackpkg check-updates" I will get back the "No news is good news" and it will appear as if my system is up to date, however doing "slackpkg upgrade-all" will show that there are available packages to be upgraded. Is this how it is intended to work? To only tell the user of new packages/file available and not per specific program (like many other package manager's on linux)? I am finding it a bit misleading/confusing the way it is now.
Look at it like this:

slackpkg downloads repository information from a remote server to your local computer. At any time you can run "slackpkg upgrade somepackage" and slackpkg will use its locally stored cache to find out what version to download. It only contacts the remote server for the package download but does not check for newer files.

The "slackpkg check-updates" on the other hand, compares the state of slackpkg's information on your local computer, with the reality on the remote server and will warn if it detects any remote changes.
After you've noticed that the remote server has updates and you run "slackpkg update" your local slackpkg cached information is identical to the remote server and therefore a second "slackpkg check-updates" will not report anything new.
When you run "slackpkg update" it is your responsibility to also run "slackpkg install-new" and "slackpkg upgrade-all". What else is the purpose of "slackpkg update" if you have no intention of updating?
 
3 members found this post helpful.
  


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
LFTP - ls can see files but "get: Access failed: 404 filenotfound (.\ReadMe.txt)" occ MatthewSmith Linux - Laptop and Netbook 2 08-02-2012 02:32 PM
[SOLVED] How to recover from "slackpkg remove" followed by "installpkg"? catkin Slackware 5 04-29-2010 10:54 AM
[SOLVED] move all ".txt" files, adding parent directory to filename mostofmonty Linux - Newbie 9 09-15-2009 08:39 AM
In Thunar, how to "Open Terminal Here" for .txt or .dat files? cstrieder Linux - Desktop 2 03-02-2009 08:02 PM
Yast2: "Signature check for patch info files failed" The_fuzzy_cow SUSE / openSUSE 1 12-30-2004 04:40 PM

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

All times are GMT -5. The time now is 07:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration