SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On a remote server (on a vps) I have a complete installation of 14.2 except 4 series: kde, kdei, xap, and xfce. I wrote them to the /etc/slackpkg/blacklist.
Now I need to install one package from xap: imagemagick.
Is there any way to whitelist imagemagick without installing the whole series xap?
I think the best way to do that is by specifying the packages in /etc/slackpkg/greylist , but it will be unselected when running upgrade-all.
If xap is in the blacklist, then greylist will change nothing. If xap is not in the blacklist, then greylist will change [X] to [ ]. This doesn't make 'slackpkg install-new' usable. Or I don't understand your idea.
Can't you just remove xap from the blacklist and do `slackpkg install imagemagick`? It will not install the whole xap series. If you're not on -current, you shouldn't need to run install-new.
Stable rarely adds new packages, but its perfectly safe to run install-new when there are no new packages to install and it will not take much more time.
Stable rarely adds new packages, but its perfectly safe to run install-new when there are no new packages to install and it will not take much more time.
Then my question remains valid: how to blacklist all xap except imagemagick?
Is it warranted? I understand that it's unusual to have a new package in stable, but is it really impossible?
Well, just from looking at the ChangeLog for 14.2, I see there have been 0 new packages added since it was released. Just for fun, I also looked at the ChangeLog for 13.0, and there have been 0 new packages added since it was released in 2009. So I think it's pretty safe to say you do not need to run install-new on a -stable release.
I think the best way to do that is by specifying the packages in /etc/slackpkg/greylist , but it will be unselected when running upgrade-all.
I mean to remove xap from /etc/slackpkg/blacklist
Then add xap packages to /etc/slackpkg/greylist
Then when you do an "install-new" or "upgrade-pkg", you'll have to select the ones you want (greylisted packages will be deselected), so you would then manually select imagemagick for example.
Well, just from looking at the ChangeLog for 14.2, I see there have been 0 new packages added since it was released. Just for fun, I also looked at the ChangeLog for 13.0, and there have been 0 new packages added since it was released in 2009.
You didn't look at 13.37:
Code:
Sat Mar 16 07:10:09 UTC 2013
patches/packages/libyaml-0.1.4-x86_64-1_slack13.37.txz: Added.
This is needed for Psych (YAML wrapper) in the new Ruby package.
patches/packages/ruby-1.9.3_p392-x86_64-1_slack13.37.txz: Upgraded.
This release includes security fixes about bundled JSON and REXML.
For more information, see:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-0269
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-1821
(* Security fix *)
Sat Mar 16 07:10:09 UTC 2013
patches/packages/libyaml-0.1.4-x86_64-1_slack13.37.txz: Added.
This is needed for Psych (YAML wrapper) in the new Ruby package.
patches/packages/ruby-1.9.3_p392-x86_64-1_slack13.37.txz: Upgraded.
This release includes security fixes about bundled JSON and REXML.
For more information, see:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-0269
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-1821
(* Security fix *)
Fair enough. Still an exceedingly rare occurrence.
Then my question remains valid: how to blacklist all xap except imagemagick?
You shouldn't need to blacklist those in most cases. install-new will look at the changelog and present any new packages that have been added to Slackware since the last time you ran slackpkg update. upgrade-all will only present programs that are already installed.
The blacklist is more to prevent already installed packages from being updated. Say if you decided to manually upgrade mesa to a newer version, you'd add mesa to prevent you from consistently getting prompted to "update" mesa to the stock version.
So, the only way you'd possibly run into issues is if you were to accidentally run slackpkg install xap or if any programs get added to stable Slackware (which, as seen above, is not likely) that would fall under one of those groups.
You shouldn't need to blacklist those in most cases. install-new will look at the changelog and present any new packages that have been added to Slackware since the last time you ran slackpkg update.
If xap is not blacklisted, install-new will suggest to install it, because it is not installed and thus "new"!
since 8.1 (first release with versioned packages) it was only tree times by two reasons:
9.1: patches/packages/kernel-headers-2.4.24-i386-1.tgz: Added.
13.1: patches/packages/libyaml-0.1.4-i486-1_slack13.1.txz: Added.
13.37: patches/packages/libyaml-0.1.4-i486-1_slack13.37.txz: Added.
Thus, this is extremely rare.
Now, thanks to the above discussion, I think a good solution will be the following. On a computer with complete install, run via cron a script that will do
Code:
slackpkg -batch=on -default_answer=no install-new
and then check if the output reads "No packages match the pattern for install". If not, it will send mail.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.