Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
06-30-2014, 04:01 PM
|
#1
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
System asking to remove pkgs that I installed
Hi:
I installed flashplayer-plugin, Libre Office, and Openjdk because I needed them.
After updating the system I ran ' slackpkg clean-system'
Upon doing so Slackware offered to remove them-
Code:
flashplayer-plugin-11.2202.359-x86_64-1alien
libreoffice-4.2.4-x86_64-1alien
openjdk-7u55_b14-x86_64-1alien
If I remove the packages then I will only have to install them again-
Right?
If so... why is Slackware offering to remove what I need?
-:--(trying to understand how this distribution thinks)--:-
Is this because the package extension is not .txz?
Also I noticed when I wanted to 'upgrade all' pkg's the old mosilla-firefox-24 is still in the list. FF 30 is the current version.
Using the "removepkg" tool should solve that issue--
|
|
|
06-30-2014, 04:15 PM
|
#2
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,146
Rep:
|
This is just because these packages are not shipped with Slackware and slackpkg only deal with official Slackware packages.
To avoid that inconvenience, blacklist them.
To know more:
Code:
man slackpkg
man slackpkg.conf
Quote:
Also I noticed when I wanted to 'upgrade all' pkg's the old mosilla-firefox-24 is still in the list. FF 30 is the current version.
|
'upgrade all' only upgrade if: - You did a "slackpkg update" before and
- There was an update showing in the ChangeLog for your Slackware version,
But the last update of Firefox for Slackware 14.1 is
Code:
Sat Jun 7 02:47:42 UTC 2014
patches/packages/mozilla-firefox-24.6.0esr-i486-1_slack14.1.txz: Upgraded.
PS Slackware's policy is to upgrade software shipped in stable releases mostly as security fixes, and sometimes to correct major failures, almost never to get other kinds of enhancements as shows for instance the Stable ChangeLog for x86 (32-bit).
Last edited by Didier Spaier; 06-30-2014 at 04:46 PM.
Reason: post completed.
|
|
|
06-30-2014, 04:15 PM
|
#3
|
Member
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288
Rep:
|
As these are not part of the core Slackware, slackpkg does not know that you want them there and are managing them with a different system.
To prevent this, you need to blacklist the packages using the /etc/slackpkg/blacklist file.
Once added, the clean system command will no longer try to remove them for you.
|
|
1 members found this post helpful.
|
06-30-2014, 04:57 PM
|
#4
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
I found how to blacklist in the 'man slackpkg' manpage-
Code:
blacklist
With this action, you can "blacklist" certain packages.
Blacklisted packages will not be installed, upgraded, or removed
by slackpkg. If you want to remove some package from the black
list, please edit /etc/slackpkg/blacklist.
I haven't blacklisted any pkg's before. Before I edit the /etc/slackpkg/blacklist file I'll look in our Form here to see where members have shown how they have blacklisted pkg's and or maybe drivers too.
If I had to guess I'm thinking I could just simply type something like this?
# blacklist mozilla-firefox-24.6.0esr-x86_64-1_ (or whatever the pkg that is the inconvenience)
|
|
|
06-30-2014, 05:02 PM
|
#5
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,146
Rep:
|
Just have a look at /etc/slackpkg/blacklist, it's well commented.
|
|
1 members found this post helpful.
|
06-30-2014, 05:10 PM
|
#6
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by Didier Spaier
Just have a look at /etc/slackpkg/blacklist, it's well commented.
|
Looking at it now.
Code:
bash-4.2$ ls /etc/slackpkg/blacklist
/etc/slackpkg/blacklist
bash-4.2$ cat /etc/slackpkg/blacklist
# This is a blacklist file. Any packages listed here won't be
# upgraded, removed, or installed by slackpkg.
#
# The correct syntax is:
#
# To blacklist the package xorg-server-1.6.3-x86_64-1 the line will be:
# xorg-server
#
# DON'T put any space(s) before or after the package name or regexp.
# If you do this, the blacklist will NOT work.
#
# Automated upgrade of kernel packages aren't a good idea (and you need to
# run "lilo" after upgrade). If you think the same, uncomment the lines
# below
#
#kernel-firmware
#kernel-generic
#kernel-generic-smp
#kernel-headers
#kernel-huge
#kernel-huge-smp
#kernel-modules
#kernel-modules-smp
#kernel-source
#
# aaa_elflibs can't be updated.
#
aaa_elflibs
# You can blacklist using regular expressions.
#
# Don't use *full* regex here, because all of the following
# will be checked for the regex: series, name, version, arch,
# build and fullname.
#
# This one will blacklist all SBo packages:
#[0-9]+_SBo
bash-4.2$
If I remember correctly when bash see's the pound (#) sign it's ignored.
I should be abe to edit (add the word blacklist and the pkg name) at the end of this file; right?
|
|
|
06-30-2014, 05:13 PM
|
#7
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
The clean-system command is only ever needed for version updates (for example from Slackware 14.0 to 14.1), in a stable release packages will never be removed from the tree. So instead of blacklisting you could just stop to use clean-system (for that matter, install-new is also not needed).
|
|
1 members found this post helpful.
|
06-30-2014, 05:14 PM
|
#8
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639
Rep:
|
You don't have to add the word blacklist, and you should not include any version information. So the line would be simply, eg.
Brian
|
|
1 members found this post helpful.
|
06-30-2014, 05:16 PM
|
#9
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by Ztcoracat
If I remember correctly when bash see's the pound (#) sign it's ignored.
|
Correct.
Quote:
I should be abe to edit (add the word blacklist and the pkg name) at the end of this file; right?
|
You don't add the word blacklist, just the package name, preferably without version numbers, so for Firefox (for example if you use ruario's latest-firefox script to use non-ESR Firefox versions) you put just in that file.
|
|
|
06-30-2014, 05:17 PM
|
#10
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by TobiSGD
The clean-system command is only ever needed for version updates (for example from Slackware 14.0 to 14.1), in a stable release packages will never be removed from the tree. So instead of blacklisting you could just stop to use clean-system (for that matter, install-new is also not needed).
|
Thanks; TobiSGD-
It is good however to learn how to blacklist. Might come in handy in the future.
|
|
|
06-30-2014, 05:22 PM
|
#11
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
You don't add the word blacklist, just the package name, preferably without version numbers, so for Firefox (for example if you use ruario's latest-firefox script to use non-ESR Firefox versions) you put just
|
Got it-:-
I see now where that file says "DON"T put any spaces before the pkg name or regexp.
If you do the blacklist will not work."
|
|
|
06-30-2014, 05:33 PM
|
#12
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
@Didier Spaier; WhiteWolf 1776 & BCarey thanks for your support:-
|
|
|
06-30-2014, 05:40 PM
|
#13
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Just edited the /etc/slackpkg/blacklist file with "mozilla-firefox" successfully.
All is good now--
|
|
|
07-01-2014, 03:55 AM
|
#14
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Rep:
|
In /etc/slackpkg/blacklist:
To blacklist Alien Bob's packages, put:
And if you're using ruario's latest-firefox script, put:
|
|
1 members found this post helpful.
|
07-01-2014, 02:39 PM
|
#15
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Original Poster
|
Quote:
Originally Posted by brianL
In /etc/slackpkg/blacklist:
To blacklist Alien Bob's packages, put:
And if you're using ruario's latest-firefox script, put:
|
Thanks!
I am using Ruario's latest script:-
I only have to do that once in that file for ruario's script right?
|
|
|
All times are GMT -5. The time now is 05:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|