LinuxQuestions.org
Review your favorite Linux distribution.
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 08-11-2018, 09:35 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
slackpkg upgrade-all questions


Coupla questions ... in /etc/slackpkg/blacklist I had 'libreoffice', yet when I ran slackpkg upgrade-all I got:
Code:
libreoffice-5.4.2-x86_64-1alien
libreoffice-6.0.2-x86_64-1alien
libreoffice-dict-en-5.4.2-x86_64-1alien
libreoffice-dict-en-6.0.2-x86_64-1alien
libreoffice-kde-integration-5.4.2-x86_64-1alien
libreoffice-kde-integration-6.0.2-x86_64-1alien
and the question asking me whether I wanted to blacklist, ignore, etc. I also tried 'libreoffice*' and '[0-9]+alien', still I got the question. So, I answered "Blacklist" and it made the following entries in /etc/slackpkg/blacklist:
Code:
libreoffice
libreoffice-dict-en
libreoffice-kde-integration
I don't see why none of my blacklist specifications worked, esp. the 1st one with just 'libreoffice' since it added that same string automatically. Why the 'dict..' and 'kde..' suffixes? Shouldn't the string 'libreoffice' be a wildcard for anything containing that string?

Question 2:

I upgraded several Slackware64 14.2 systems at the beginning of July and the kernel was upgraded to 4.4.132. I had one more system to go which I just did today (Aug 11), yet it did not upgrade the kernel. This system is still at 4.4.88. The kernel is not blacklisted in /etc/slackpkg/blacklist. Why?

Last edited by mfoley; 08-11-2018 at 09:37 AM.
 
Old 08-12-2018, 03:56 AM   #2
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,968

Rep: Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546
Quote:
Originally Posted by mfoley View Post
Coupla questions ... in /etc/slackpkg/blacklist I had 'libreoffice', yet when I ran slackpkg upgrade-all I got:
Code:
libreoffice-5.4.2-x86_64-1alien
libreoffice-6.0.2-x86_64-1alien
libreoffice-dict-en-5.4.2-x86_64-1alien
libreoffice-dict-en-6.0.2-x86_64-1alien
libreoffice-kde-integration-5.4.2-x86_64-1alien
libreoffice-kde-integration-6.0.2-x86_64-1alien
Are you using slackpkg+ with slackpkg?

Are you using Alien Bob's repository?

What you have is two of each package installed. At some point you must have ran installpkg with libreoffice. You need to run removepkg on one of the set. Alternatively you should be able to run 'slackpkg remove libreoffice' and then select which packages to remove. I'd go with the older version, then run 'slackpkg reinstall libreoffice' for the newer packages.

Quote:
and the question asking me whether I wanted to blacklist, ignore, etc. I also tried 'libreoffice*' and '[0-9]+alien', still I got the question. So, I answered "Blacklist" and it made the following entries in /etc/slackpkg/blacklist:
Code:
libreoffice
libreoffice-dict-en
libreoffice-kde-integration
Well that is what you told slackpkg to do, so it blacklisted libreoffice.

The first libreoffice is enough to blacklist the last two.

Quote:
I don't see why none of my blacklist specifications worked, esp. the 1st one with just 'libreoffice' since it added that same string automatically. Why the 'dict..' and 'kde..' suffixes? Shouldn't the string 'libreoffice' be a wildcard for anything containing that string?
Slackpkg made the blacklist entries based on what was shown where your were given the option to blacklist, it took the three base package names and blacklist them as requested. Slackpkg does not know your eventual intentions, so it took care of all by blacklisting as requested. When I run in to this situation, I just ignore, you will be dropped out of slackpkg so you can handle the situation.

Question 2:

Quote:
I upgraded several Slackware64 14.2 systems at the beginning of July and the kernel was upgraded to 4.4.132. I had one more system to go which I just did today (Aug 11), yet it did not upgrade the kernel. This system is still at 4.4.88. The kernel is not blacklisted in /etc/slackpkg/blacklist. Why?
Not enough information to answer. If the default kernel entries (commented out) in blacklist are not commented out then slackpkg should have upgraded the kernel packages.

What does 'slackpkg search kernel' ouutput?
 
Old 08-13-2018, 08:26 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
On thing at a time:
Quote:
Originally Posted by chrisretusn View Post
If the default kernel entries (commented out) in blacklist are not commented out then slackpkg should have upgraded the kernel packages.

What does 'slackpkg search kernel' ouutput?
Output of 'slackpkg search kernel' is:
Code:
# slackpkg search kernel

Looking for kernel in package list. Please wait... DONE

The list below shows all packages with name matching "kernel".

[uninstalled] - kernel-firmware-20180727_b01151b-noarch-1
[uninstalled] - kernel-generic-4.4.144-x86_64-1
[uninstalled] - kernel-headers-4.4.144-x86-1
[uninstalled] - kernel-huge-4.4.144-x86_64-1
[uninstalled] - kernel-modules-4.4.144-x86_64-1
[uninstalled] - kernel-source-4.4.144-noarch-1
[uninstalled] - kernel-module-ecryptfs-4.4.14-x86_64-1
My /etc/slackpkg/blacklist is:
Code:
#kernel-firmware
#kernel-generic
#kernel-generic-smp
#kernel-headers
#kernel-huge
#kernel-huge-smp
#kernel-modules
#kernel-modules-smp
#kernel-source

[0-9]+_SBo
[0-9]+alien
libreoffice
libreoffice-dict-en
libreoffice-kde-integration
Which *should* mean my kernel gets updated. However, when I run 'slackpkg ugrade-all' I get:
Code:
# slackpkg upgrade-all

Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE

No packages match the pattern for upgrade. Try:

        /usr/sbin/slackpkg install|reinstall
So, what's going on?

Last edited by mfoley; 08-13-2018 at 08:27 AM.
 
Old 08-13-2018, 09:21 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

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

Can you post the output of :
Code:
$ ls /var/log/packages/kernel*

$ ls /var/log/packages/slackpkg*
--
SeB
 
Old 08-13-2018, 09:49 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by mfoley View Post
Output of 'slackpkg search kernel' is:
Code:
# slackpkg search kernel

Looking for kernel in package list. Please wait... DONE

The list below shows all packages with name matching "kernel".

[uninstalled] - kernel-firmware-20180727_b01151b-noarch-1
[uninstalled] - kernel-generic-4.4.144-x86_64-1
[uninstalled] - kernel-headers-4.4.144-x86-1
[uninstalled] - kernel-huge-4.4.144-x86_64-1
[uninstalled] - kernel-modules-4.4.144-x86_64-1
[uninstalled] - kernel-source-4.4.144-noarch-1
if it's uninstalled it cannot be upgraded, right?
 
1 members found this post helpful.
Old 08-13-2018, 04:06 PM   #6
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

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

Can you post the output of :
Code:
$ ls /var/log/packages/kernel*

$ ls /var/log/packages/slackpkg*
Code:
# ls /var/log/packages/kernel*
/bin/ls: cannot access '/var/log/packages/kernel*': No such file or directory

# ls /var/log/packages/slackpkg*
/var/log/packages/slackpkg-2.82.1-noarch-3
Quote:
Originally Posted by ponce View Post
if it's uninstalled it cannot be upgraded, right?
I regularly update half-a-dozen or more Slackware computers quarterly, sometimes, but not always, updating the kernel -- which I do simply by commenting out the kernel modules in the blacklist file. My logfiles on this particular computer indicate I updated from kernel 4.4.75 to 4.4.88 last October, so this has worked before. Not sure what's up this time.

You're right about the uninstalled/upgrade thing. Doing the same search on another computer gives:
Code:
> slackpkg search kernel

Looking for kernel in package list. Please wait... DONE

The list below shows all packages with name matching "kernel".

[  upgrade  ] - kernel-firmware-20170914git-noarch-1 --> kernel-firmware-20180727_b01151b-noarch-1
[  upgrade  ] - kernel-generic-4.4.88-x86_64-1 --> kernel-generic-4.4.144-x86_64-1
[  upgrade  ] - kernel-headers-4.4.88-x86-1 --> kernel-headers-4.4.144-x86-1
[  upgrade  ] - kernel-huge-4.4.88-x86_64-1 --> kernel-huge-4.4.144-x86_64-1
[  upgrade  ] - kernel-modules-4.4.88-x86_64-1 --> kernel-modules-4.4.144-x86_64-1
[  upgrade  ] - kernel-source-4.4.88-noarch-1 --> kernel-source-4.4.144-noarch-1
[uninstalled] - kernel-module-ecryptfs-4.4.14-x86_64-1
and the 4.4.88 packages *are* in /var/log/packages on that machine.

Perhaps things are out-of-wack for some reason. Maybe I should just manually install the 4.4.144 kernel modules and I should be back on track?

Last edited by mfoley; 08-13-2018 at 04:14 PM.
 
Old 08-13-2018, 04:19 PM   #7
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
THIS WORKS, for me at least. When changing mirrors OR when experiencing problems, empty this directory
Code:
rm /var/lib/slackpkg/*
 
Old 08-14-2018, 03:21 AM   #8
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

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

Quote:
Originally Posted by mfoley View Post
Code:
# ls /var/log/packages/kernel*
/bin/ls: cannot access '/var/log/packages/kernel*': No such file or directory
If I understand well, you have several Slackware computers with kernel 4.4.88 that you want to upgrade to 4.4.144, but, one of these has its package database broken (ie. the files /var/log/packages/kernel-*-4.4.88-* have been deleted, or vanished). In that case, you can fix the broken database using files from one of the other computers with the same architecture :
  • A. If at least one of the other computers has not been upgraded :
    • 1. Copy the files /var/log/packages/kernel*4.4.88* from this computer to the computer whose packages database is broken
    • 2. upgrade to the latest kernel.

  • B. If all the other computers has been upgraded :
    • 1. Copy the files /var/log/removed_packages/kernel*4.4.88* of one of these computer to the computer whose packages database is broken.
    • 2. On the computer whose package database is broken, remove the suffix "-upgraded-<DATA>-<TIME>" from the copied files, like in example below :
      Code:
      mv kernel-generic-4.4.88-x86_64-1-upgraded-2017-12-31\,14\:23\:21 kernel-generic-4.4.88-x86-64-1
    • 3. upgrade to the latest kernel.

--
SeB
 
Old 08-14-2018, 03:58 AM   #9
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Thanks for the advice. I mostly went the route of phenixia2003's method B. Gordie's idea of completely wiping the /var/log/packages directory seemed a bit extreme. A one-by-one install of the new kernel as I proposed in post #6 would be the same as phenixia2003's suggestion, but phenixia2003's idea would do them all at once.
 
Old 08-14-2018, 04:08 AM   #10
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,968

Rep: Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546
When is the last time you ran 'slackpkg update'?

That 'slackpkg search kernel' you posted with all the kernels uninstalled is odd. Your package database must be broken. There should be a kernel showing as installed. Running 'slackpkg update' and force it to run if asked might fit it.

What does 'uname -r' show?
 
Old 08-14-2018, 04:15 AM   #11
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Back to the first question ...

Quote:
Originally Posted by chrisretusn View Post
Are you using slackpkg+ with slackpkg?
No, what is slackpkg+?
Quote:
Are you using Alien Bob's repository?
I've used wget to retrieve Alien Bob's libreoffice from Alien Bob's repository, then used installpkg to install it/them.
Quote:
What you have is two of each package installed. At some point you must have ran installpkg with libreoffice. You need to run removepkg on one of the set. Alternatively you should be able to run 'slackpkg remove libreoffice' and then select which packages to remove. I'd go with the older version, then run 'slackpkg reinstall libreoffice' for the newer packages.
Quote:
and the question asking me whether I wanted to blacklist, ignore, etc. I also tried 'libreoffice*' and '[0-9]+alien', still I got the question. So, I answered "Blacklist" and it made the following entries in /etc/slackpkg/blacklist:
Code:
libreoffice
libreoffice-dict-en
libreoffice-kde-integration
Well that is what you told slackpkg to do, so it blacklisted libreoffice.

The first libreoffice is enough to blacklist the last two.
I get that. However, when I initially ran the upgrade-all I already had "libreoffice" in the blacklist. I understood, as you say, that the "first libreoffice is enough to blacklist". But, it did not. I got the the blacklist/ignore message anyway. Perhaps this has something to do with my having two package versions out there, but nevertheless I would have though the blacklist entry for libreoffice would have still prevented any checking on this package.

My other Slackware systems exhibit this same problem, so I will experiment by removing the duplicate package and seeing if the blacklist prompt goes away.

Last edited by mfoley; 08-14-2018 at 04:16 AM.
 
Old 08-14-2018, 05:59 AM   #12
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,968

Rep: Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546
Quote:
Originally Posted by mfoley View Post
Back to the first question ...


No, what is slackpkg+?
It's an add-on to slackpkg to handle 3rd party packages with slackpkg; which is why I asked. For now I wouldn't consider installing slackpkg+ until you understand a bit more how slackpkg works.

Even though slackpkg does not handle 3rd party packages, you got this because slackpkg detected a problem, in this case duplicate packages.
Code:
libreoffice-5.4.2-x86_64-1alien
libreoffice-6.0.2-x86_64-1alien
libreoffice-dict-en-5.4.2-x86_64-1alien
libreoffice-dict-en-6.0.2-x86_64-1alien
libreoffice-kde-integration-5.4.2-x86_64-1alien
libreoffice-kde-integration-6.0.2-x86_64-1alien

You can (B)lacklist, (R)emove, or (I)gnore these packages.
Select your action (B/R/I):
You chose 'b' so, the base package name was added to the blacklist file.

A choice of 'i' would have resulted in:
Code:
Okay - slackpkg won't do anything now, but please, do something to fix it.
A choice of 'r' would have resulted in a dialog for you to select which packages to remove.

Quote:
I've used wget to retrieve Alien Bob's libreoffice from Alien Bob's repository, then used installpkg to install it/them.
Something I would do as well. Now if you already had libreoffice installed. Then that would not be a thing I would do. If you had 5.4.2 installed already, running 'installpkg' on 6.0.2 would install that set of packages, resulting in two libreoffice installs.

Quote:
I get that. However, when I initially ran the upgrade-all I already had "libreoffice" in the blacklist. I understood, as you say, that the "first libreoffice is enough to blacklist". But, it did not. I got the the blacklist/ignore message anyway. Perhaps this has something to do with my having two package versions out there, but nevertheless I would have though the blacklist entry for libreoffice would have still prevented any checking on this package.
When you have two of the same packages installed, slackpkg will still give you that message because it see a problem that needed to be fixed.

Quote:
My other Slackware systems exhibit this same problem, so I will experiment by removing the duplicate package and seeing if the blacklist prompt goes away.
This is what I would do. Not knowing the exact state of your setup. Run 'removepkg libreoffice' to remove all of libreoffice. Then run 'installpkg *.txz' with the version of libreoffice you want installed. -OR- Alternatively run 'upgradepkg --install-new --reinstall *.txz with the version of libreoffice you want installed.

Key point to remember, slackpkg is only for Slackware packages. Slackpkg does not work with 3rd party packages like libreoffice. The way to handle third party packages it to install them from a directory say /home/non-slack/packages/. For a first time install 'installpkg' is proper. For updated packages, 'upgradepkg' is what should be run. Another option would be to run 'upgradepkg --install-new --reinstall' on the desired packages. This way the package will be installed if new and upgraded in already installed.

If you remove the duplicate packages the messages will go away. In fact you will get this as a response to 'slackpkg upgrade-all':
Code:
Checking local integrity... DONE
Looking for packages to upgrade. Please wait...

No packages match the pattern for upgrade. Try:

/usr/sbin/slackpkg install|reinstall
As already mentioned, slackpkg does not work with 3rd party packages.

For example: with one set of libreoffice packages installed run 'slackpkg search libreoffice' the result will be:
Code:
Looking for libreoffice in the package list. Please wait... DONE

No package name matches the pattern.
running 'ls /var/log/packages/libreoffice*' will show that libreoffice is indeed installed.

Putting entries in /etc/slackpkg/blacklist for 3rd part packages only serves to keep them from appearing when you run 'slackpkg clean-system'

Last edited by chrisretusn; 08-14-2018 at 06:06 AM.
 
1 members found this post helpful.
Old 08-14-2018, 08:15 AM   #13
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Yup, you (chrisretusn) are right, "When you have two of the same packages installed, slackpkg will still give you that message because it see a problem that needed to be fixed." One of the machines had 2 older versions of LibreOffice. I got the same message. I removed the older two (leaving the current version) and 'slackpkg upgrade-all' gave no error message. So, having two of the same package gives the error message regardless of blacklisting. Good to know. I'll update my documentation to specify removing the older libreoffice package before installing the new one. slackpkg and sbopkg remove the old package automatically. I guess I wrongly assumed installpkg would do the same.

Anyway, problems solved! Thanks
 
Old 08-14-2018, 08:21 AM   #14
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by mfoley View Post
Gordie's idea of completely wiping the /var/log/packages directory seemed a bit extreme.
Read it again -- he didn't suggest that. That would be an excellent way of completing hosing package management on your system, though. (I did that once by accident. Woops.)
 
2 members found this post helpful.
Old 08-14-2018, 09:10 AM   #15
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,968

Rep: Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546Reputation: 1546
Quote:
Originally Posted by mfoley View Post
I'll update my documentation to specify removing the older libreoffice package before installing the new one.
You don't need to do that. I don't know that layout of your system, so I will use what I would do.

I would have a directory called /home/non-slack/packages/

In that directory would be all of the 3rd party packages I have installed or want to install.

In the case of libreoffice, from that directory, I would remove the old libreoffice files e.g., 'rm libreoffice*.txz'. Then download the new libreoffice files I want to install. Run 'upgradepkg libreoffice*.txz'. This will upgrade the installed libreoffice to the new.


Quote:
Anyway, problems solved! Thanks
 
1 members found this post helpful.
  


Reply

Tags
blacklist, slackpkg



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
What have I done. slackpkg upgrade-all evanmars Linux - Laptop and Netbook 2 12-04-2017 09:22 AM
Further slackpkg questions Josh000 Slackware 6 02-21-2011 07:54 PM
[SOLVED] After upgrade all using slackpkg upgrade, configuration is failed to read ethereal1m Linux - Newbie 3 04-28-2010 01:03 AM
slackpkg upgrade-all does not show an upgrade sycamorex Slackware 6 11-03-2009 05:29 AM
Slackpkg questions jerf Slackware 1 03-25-2008 08:41 AM

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

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