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 06-30-2014, 04:01 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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--
 
Old 06-30-2014, 04:15 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,146

Rep: Reputation: Disabled
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.
 
Old 06-30-2014, 04:15 PM   #3
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288

Rep: Reputation: 95
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.
Old 06-30-2014, 04:57 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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)
 
Old 06-30-2014, 05:02 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,146

Rep: Reputation: Disabled
Just have a look at /etc/slackpkg/blacklist, it's well commented.
 
1 members found this post helpful.
Old 06-30-2014, 05:10 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by Didier Spaier View Post
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?
 
Old 06-30-2014, 05:13 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
Old 06-30-2014, 05:14 PM   #8
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
You don't have to add the word blacklist, and you should not include any version information. So the line would be simply, eg.

Code:
mozilla-firefox
Brian
 
1 members found this post helpful.
Old 06-30-2014, 05:16 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Ztcoracat View Post
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
Code:
mozilla-firefox
in that file.
 
Old 06-30-2014, 05:17 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 06-30-2014, 05:22 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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."
 
Old 06-30-2014, 05:33 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
@Didier Spaier; WhiteWolf 1776 & BCarey thanks for your support:-
 
Old 06-30-2014, 05:40 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Just edited the /etc/slackpkg/blacklist file with "mozilla-firefox" successfully.

All is good now--
 
Old 07-01-2014, 03:55 AM   #14
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Blog Entries: 61

Rep: Reputation: Disabled
In /etc/slackpkg/blacklist:
To blacklist Alien Bob's packages, put:
Code:
[0-9]+alien
And if you're using ruario's latest-firefox script, put:
Code:
[0-9]+ro
 
1 members found this post helpful.
Old 07-01-2014, 02:39 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528

Original Poster
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by brianL View Post
In /etc/slackpkg/blacklist:
To blacklist Alien Bob's packages, put:
Code:
[0-9]+alien
And if you're using ruario's latest-firefox script, put:
Code:
[0-9]+ro
Thanks!

I am using Ruario's latest script:-

I only have to do that once in that file for ruario's script right?
 
  


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
rpm remove, but system says not installed lonecrow Linux - Newbie 15 08-29-2007 05:20 PM
is it possible to have k-lite codec pkgs to be installed like win32codecs deepclutch Linux - Software 6 04-20-2007 07:17 AM
Get pkgs (xFree86) installed from cmd line mattp Debian 2 10-02-2005 01:16 PM
if 4.0 is installed can 4.0 soho pkgs be installed?? bosewicht VectorLinux 2 11-22-2003 11:05 AM
list installed pkgs? clothocan Mandriva 4 10-06-2003 08:19 AM

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

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