LinuxQuestions.org
Help answer threads with 0 replies.
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-09-2019, 10:19 PM   #1
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 95

Rep: Reputation: 2
slackpkg upgrade-all and two version of multiple packages


I am using -current. I tried to install 14.2, but -current was the only version I could get to install. Somewhere in that thread, someone hints that -current requires more involvement in maintaining the system. I am pretty novice with the finer points of maintaining a Linux system and I'm trying to be better about it.

At the moment, I have just finished getting slackpkg+ set up. But even before I finished getting that configured, I was running into a problem when I used
Code:
slackpkg upgrade-all
The output is a huge list of packages. Nearly every package is listed with two versions. For example,
Quote:
...
xz-5.2.2-x86_64-1
xz-5.2.4-x86_64-1
yasm-1.3.0-x86_64-1
yasm-1.3.0-x86_64-2
yptools-2.14-x86_64-11
yptools-2.14-x86_64-7
ytalk-3.3.0-x86_64-2
ytalk-3.3.0-x86_64-4
zd1211-firmware-1.4-fw-1
zd1211-firmware-1.5-fw-2
zeroconf-ioslave-4.14.3-x86_64-2
zeroconf-ioslave-4.14.3-x86_64-3
zlib-1.2.11-x86_64-2
zlib-1.2.8-x86_64-1
zoo-2.10_22-x86_64-1
zoo-2.10_22-x86_64-2
zsh-5.2-x86_64-1
zsh-5.7.1-x86_64-1
I can't page back through the list of all the packages, so I don't know what is at the start of the list, like warnings or error messages. At the end of the list, there is
Code:
You can (B)lacklist, (R)emove, or (I)gnore these packages.
I don't know what led to this. I installed -current only like a month ago and probably ran
Code:
slackpkg update gpg
slackpkg update
slackpkg upgrade-all
after that, don't know anything else about package management on Slackware, so I probably wouldn't have tried anything else. I don't know if or how running the slackpkg steps would have led to two versions of each package.

How do I get the packages pared back to one version of each? Will this solve the problem, or is there something less obvious and more ominous (besides being a newb) I am missing?
 
Old 08-09-2019, 10:40 PM   #2
mumahendras3
LQ Newbie
 
Registered: Feb 2018
Location: Indonesia
Distribution: Obarun, Slackware
Posts: 19

Rep: Reputation: Disabled
That is strange, it seems that there are Slackware 14.2 packages installed in your -current installation. How did you installed -current? I think you installed -current on top of existing 14.2 installation without deleting 14.2 installation first. Maybe you skipped the "format the partition" step when installing -current?

Last edited by mumahendras3; 08-09-2019 at 10:42 PM.
 
1 members found this post helpful.
Old 08-09-2019, 11:02 PM   #3
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 95

Original Poster
Rep: Reputation: 2
I used an ISO and made a clean install with it. I wonder if I didn't have the right repository in the configuration for slackpkg. Would that cause this problem to occur?
 
Old 08-10-2019, 06:28 AM   #4
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Slackware
Posts: 1,760
Blog Entries: 3

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
Quote:
Originally Posted by deretsigernu View Post
I used an ISO and made a clean install with it. I wonder if I didn't have the right repository in the configuration for slackpkg. Would that cause this problem to occur?
It's listing both 14.2 and -current packages, maybe you have more than one mirror uncommented?

I would first of all do things my elimination. Disable slackpkg+, run slackpkg-update and then look at the standard mirror list and then upgrade-all and see the output. Then go through slackpkg+.

Last edited by Lysander666; 08-10-2019 at 06:30 AM.
 
Old 08-10-2019, 08:12 AM   #5
mumahendras3
LQ Newbie
 
Registered: Feb 2018
Location: Indonesia
Distribution: Obarun, Slackware
Posts: 19

Rep: Reputation: Disabled
At my -current installation, slackpkg will complain if there are more than one mirrors uncommented. Did the same error happened if you run "slackpkg update" ? (You can redirect slackpkg output to a file so that you can check what the error is)
 
Old 08-10-2019, 11:04 AM   #6
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Posts: 38

Rep: Reputation: 7
Wouldn't running "slackpgk clean-system" take care of "duplicates"?
 
Old 08-10-2019, 11:25 AM   #7
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Slackware
Posts: 1,760
Blog Entries: 3

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
Slackpkg clean-system removes obsolete packages [i.e. removed from the official tree in stable or current], it will also remove unofficial packages. So if the packages are official and still in use in 14.2/current, they'll stay there.
 
Old 08-10-2019, 11:44 AM   #8
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 95

Original Poster
Rep: Reputation: 2
I turned slackpkg+ off, by going to slackpkgplus.conf and changing the param to "off". I ran

Quote:
slackpkg update gpg
slackpkg update
because I wasn't sure how to finish "turning off" slackpkg+. I figured I needed some way to get the system to read the configuration file and realize that I didn't want slackpkg+ running.

Then I checked the mirror in /etc/slackpkg/mirrors and only one -current mirror is selected.

I used
Quote:
slackpkg upgrade-all
and I still get the duplicate packages. Maybe I didn't disable slackpkg+ correctly? Is there a different step after changing the config setting to "off" that I need to take?

Last edited by deretsigernu; 08-10-2019 at 11:48 AM. Reason: hit save too soon
 
Old 08-10-2019, 11:45 AM   #9
bormant
Member
 
Registered: Jan 2008
Posts: 336

Rep: Reputation: 194Reputation: 194
Lysander666,
'slackpkg clean-system' can help only if right versions were installed after wrong versions -- after 'slackpkg clean-system' right files stay on disk.

For ex. package pkg with versions 1 and 2 has file /usr/bin/somefile.

1) installpkg pkg-1-*t?z
after this /usr/bin/somefile is in version 1, /var/log/packages/ has only pkg-1

2) installpkg pkg-2-*t?z
after this /usr/bin/somefile is in version 2, /var/log/packages/ has pkg-1 and pkg-2

3) slackpkg clean-system calls removepkg to remove selected packages.

case 1: removepkg pkg-1
all ok -- /usr/bin/somefile is in version 2, /var/log/packages/ has only pkg-2

case 2: removepkg pkg-2
Ups! -- /usr/bin/somefile is in version 2, but /var/log/packages/ has only pkg-1

Last edited by bormant; 08-10-2019 at 11:47 AM.
 
Old 08-10-2019, 05:42 PM   #10
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 95

Original Poster
Rep: Reputation: 2
I saw an earlier comment that mentioned "clean-system". Thought it sounded a good idea.

I ran
Quote:
slackpkg clean-system
and there was a long list of packages to remove.
And I said yes.
And as many of you probably knew would happen, I created a digital black hole in my computer... when I rebooted, there was no image or anything linux-wise to boot.

So, I just finished a fresh install of slackware-current. I have not run slackpkg yet. I did set up one -current mirror for slackpkg. I also ran
Quote:
slackpkg update gpg
slackpkg update
but not
Quote:
slackpkg upgrade-all
or any other slackpkg commands. I want to install slackpkg+ to access to other respositories, but will hold off on that while I make sure I avoid the missteps that led to the problem that started this thread: apparently installing packages for 14.2 and -current.
 
Old 08-11-2019, 05:33 PM   #11
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 95

Original Poster
Rep: Reputation: 2
I ran
Quote:
slackpkg upgrade-all
and I get the list of duplicate packages all over again. I made a fresh install of -current yesterday with the ISO I have on a USB drive. I did not run any other slackpkg scripts or other package management apps except for what I did in the previous post. I only have a -current mirror active in /etc/slackpkg/mirrors. The ISO I used came from the main slackware mirror for 64-current and I checked the MD5 hash at the time.
 
Old 08-12-2019, 09:34 AM   #12
mumahendras3
LQ Newbie
 
Registered: Feb 2018
Location: Indonesia
Distribution: Obarun, Slackware
Posts: 19

Rep: Reputation: Disabled
Well, you can try to remove the duplicates in pkgtools packages database in /var/lib/pkgtools/packages (everything inside this directory are just text files). For instance, you can go to /var/lib/pkgtools/packages and search for zsh-5.2-x86_64-1 and zsh-5.7.1-x86_64-1, then move the newer version (zsh-5.7.1-x86_64-1) out of that directory. That way, when you run

Code:
slackpkg upgrade-all
it should not complain about the duplicate anymore and it will try to upgrade that package to the newest version. That way you could be sure than you are going to use the newest version of said package.

If that doesn't work, you can always move back the duplicate.

Last edited by mumahendras3; 08-12-2019 at 09:55 AM. Reason: Some grammar and addition
 
1 members found this post helpful.
Old 08-16-2019, 04:34 PM   #13
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 95

Original Poster
Rep: Reputation: 2
@mumahendras3 thanks for your suggestion. I will try it later.
 
Old 08-18-2019, 01:40 PM   #14
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 441
Blog Entries: 2

Rep: Reputation: 249Reputation: 249Reputation: 249
I'd recommend downloading manually all the ones with duplicates; and running upgradepkg --reinstall $DUPLICATE_PROGRAM. If memory serves me right, this will remove both the current program, and the duplicate, and reinstall them with just the one.
 
Old 08-20-2019, 06:21 PM   #15
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 95

Original Poster
Rep: Reputation: 2
@kronosschoty, there about 1200 packages that are duplicated. I literally don't know what I would put into a bash script to automate what you've suggested. For example, what code would I use to select the newest version of a duplicated package? I assume that I should only download the newer version of each of the duplicates? For example, using the short list I have at start of this thread:
Quote:
zlib-1.2.11-x86_64-2
zlib-1.2.8-x86_64-1
zoo-2.10_22-x86_64-1
zoo-2.10_22-x86_64-2
zsh-5.2-x86_64-1
zsh-5.7.1-x86_64-1
I would use the bold and underlined versions?
 
  


Reply

Tags
package management, slackpkg, slackpkg+


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
[SOLVED] after upgrade to new slackpkg in current it seems to be upgrading all packages tfrei Slackware 3 05-17-2016 01:29 PM
[SOLVED] slackpkg upgrade-all shows outdated packages Cultist Slackware 6 02-18-2011 07:07 PM
[SOLVED] After upgrade all using slackpkg upgrade, configuration is failed to read ethereal1m Linux - Newbie 3 04-28-2010 01:03 AM
[SOLVED] slackpkg upgrade-all: highlight a package, not showing "currently installed version" GrapefruiTgirl Slackware 17 04-05-2010 12:32 PM
slackpkg upgrade-all does not show an upgrade sycamorex Slackware 6 11-03-2009 05:29 AM

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

All times are GMT -5. The time now is 01:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration