LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-04-2020, 11:30 AM   #1
An Infamous Historian
LQ Newbie
 
Registered: Jan 2020
Location: Southern California
Distribution: Slackware
Posts: 24

Rep: Reputation: Disabled
slackpkg+ - upgrading only if version # has increased


In order to get Nautilus to compile, I had to replace the Pango that ships with -current with a newer version since Nautilus depends on features in the newer version. So I did that, made a slackbuild so I could build and install it the slackware way, etc. I now have pango 1.44.7 installed on my system.

The problem is when I use slackpkg upgrade-all (using slackpkg+), it wants to replace that with the 1.42.4 version that is part of -current.

Blacklisting pango is one solution, but I'd have to remember I have it there and remove it once the distribution version catches up with what I have. I can also upgrade packages individually rather than just doing upgrade-all. I can also use the dialog interface and just unselect pango, and then hope I remember to stop doing that once the version catches up (and hope I don't forget until then).

These are all workable solutions, and if that's what I have to do then that's what I'll do. But what I'd like to do if it's possible, and have not been able to figure out if so, is for slackpkg+ to actually compare the version numbers of the distributed version and the installed version and only replace it once the distributed version has caught up.

Is there a way to do such a thing?
 
Old 02-04-2020, 11:54 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Quote:
Originally Posted by An Infamous Historian View Post
Is there a way to do such a thing?
Not reliably. The version can include letters or other characters and is 1.2 more or less recent than 1.11?
 
1 members found this post helpful.
Old 02-04-2020, 11:59 AM   #3
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

You can simply add pango to the greylist (/etc/slackpkg/greylist)

snippet from slackpkg+ README :

Quote:
GREYLIST

Sometime you may want that slackpkg+ does not install some package in the upgrade-all
process. To do that you must uncheck the package everytime or add it in the
'blacklist' file. The first method may be onerous when you use upgrade-all frequently.
The second method does not allow you to know which package version is available.
A thirdy method is to put it in the 'greylist' file.
All packages listed in greylist will be available to install and listed in slackpkg
dialog, but they will be unchecked by default so you are sure to not install it
wrongly.
You may decide also to greylist one entire repository. A good idea is to greylist
all thirdy party repository so an upgrade-all automatically upgrade official
slackware packages but force you to review all other packages so to be sure on what
you install.
--
SeB
 
5 members found this post helpful.
Old 02-04-2020, 01:26 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Simply put, Slackware's package management tools do not care about version numbers other than to make sure either the version number or the build number are different. This allows official downgrades (which are still called "upgrades" in the changelog) to occur without issue and also allows the system to easily deal with version numbers that change drastically, like if they go from an old release to a snapshot of a git repo and uses the 7 character commit ID for the version.

Short of you changing the program itself, your only option would be to do what phenixia2003 mentioned and put the item in a greylist.
 
Old 02-05-2020, 04:41 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,916

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Does slackpkg not allow you to blacklist a specific version?

I don't use slackpkg, I have my own tools, but when I want to do this I blacklist a specific version and then it gets ignored until Pat updates that pkg file: at which point the blacklist pattern no longer matches and Pat's new version is installed.
 
1 members found this post helpful.
Old 02-05-2020, 10:02 AM   #6
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Here is another possible solution. A bit of an overkill perhaps for one package. Yet it's a great solution for multiple packages. Create your own repository.

You will need this script https://bear.alienbase.nl/mirrors/pe...repos_files.sh

It's fairly simple to setup.
 
Old 02-07-2020, 08:18 AM   #7
An Infamous Historian
LQ Newbie
 
Registered: Jan 2020
Location: Southern California
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by phenixia2003 View Post
Hello,

You can simply add pango to the greylist (/etc/slackpkg/greylist)
Thanks! Looks like that's the best I'm going to be able to do, I'll just have to remember to pay attention to when the version # increases.
 
Old 02-07-2020, 08:21 AM   #8
An Infamous Historian
LQ Newbie
 
Registered: Jan 2020
Location: Southern California
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
Does slackpkg not allow you to blacklist a specific version?

I don't use slackpkg, I have my own tools, but when I want to do this I blacklist a specific version and then it gets ignored until Pat updates that pkg file: at which point the blacklist pattern no longer matches and Pat's new version is installed.
Perhaps a pango-1.42 rather than just pango- blacklist entry would work?

I've got an idea, I'll pick some package from the next -current update and see if it makes a difference.
 
Old 02-08-2020, 03:20 PM   #9
majekw
LQ Newbie
 
Registered: May 2011
Distribution: Slackware
Posts: 15

Rep: Reputation: 23
1. Make your own repo
2. Name your packages with your unique tag (somepackage-1.0-1_mytag.tgz) and put in your repo.
3. Install it
4. Set in slackpkgplus.conf option TAG_PRIORITY=on

This way you don't need to blacklist anything, slackpkg upgrade-all works this way as expected - no upgrade of this package from other repositories, but if you put new version of this package to your repository, it will be upgraded as expected.
I use this for my custom kernel and packages backported from current for years.
 
1 members found this post helpful.
Old 05-12-2020, 12:44 AM   #10
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
(deleted)

Last edited by Poprocks; 05-12-2020 at 12:46 AM. Reason: Posted to wrong thread.
 
  


Reply



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
[SOLVED] Slackpkg upgrade-all returns 'no packages to upgrade' after slackpkg-update has downloaded files san2ban Slackware 8 11-01-2019 05:44 AM
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Using Centos 6.4, how to inform the kernel that the /sda2 partition has increased ot15 Linux - Newbie 3 04-14-2014 01:02 PM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM
Wow, My Yahoo Mail account has increased in size jaz General 13 09-01-2004 07:28 AM

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

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