LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-18-2015, 11:28 PM   #16
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,576

Original Poster
Rep: Reputation: 179Reputation: 179

That seems to mostly work. I un-check most of the packages in the list, but left checked the oldest version of some of the innocuous packages like seamonkey and firefox. Then I installed openssl and even a serious one for a domain controller: samba. Both worked. I found that you have to remove something, related or not, or slackpkg upgrade won't run.

Ran into one problem may you all can guide me through. I want to upgrade php. search gives me the following:

Code:
> slackpkg search php

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

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

[  upgrade  ] - php-5.4.36-x86_64-1_slack14.1 --> php-5.4.41-x86_64-1_slack14.1
[ installed ] - kdevelop-php-1.5.2-x86_64-1
[ installed ] - kdevelop-php-docs-1.5.2-x86_64-1

You can search specific files using "slackpkg file-search file".
But doing `slackpkg upgrade php` gives me:

Code:
==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while slackpkg was running:

php-5.4.41-x86_64-1_slack14.1.txz:      md5sum
php-5.4.41-x86_64-1_slack14.1.txz:      md5sum

==============================================================================
php did not upgrade and is still at version 5.4.30. Doing install gives:

What does this mean?
 
Old 07-19-2015, 08:15 AM   #17
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,576

Original Poster
Rep: Reputation: 179Reputation: 179
That all mostly worked. I tested by removing a few innocuous packages like seamonkey and firefox when doing `slackpkg upgrade`. Then upgraded serious ones like samba and openssl. They worked. Note that if there are packages listed in the "(B)lacklist, (R)emove or (I)gnore" list, at least one has to be removed or the update will not go, even though the updated package has nothing to do with the package removed.

Making progress figuring out slackpkg.

So, if I now run `slackpkg upgrade-all` it should just work, right?

Will upgrade-all actually upgrade to a new release when it comes out? E.g. Slackware 14.2?

Last edited by mfoley; 07-19-2015 at 08:19 AM.
 
Old 07-19-2015, 08:25 AM   #18
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
http://docs.slackware.com/howtos:sla...:systemupgrade

You can also follow the "legacy" (but working) method that will be described at the root of the installation media for Slackware-next in the file UPGRADE.TXT

Last edited by Didier Spaier; 07-19-2015 at 08:28 AM.
 
Old 07-19-2015, 10:49 AM   #19
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
I don't know if this would be helpful or not, as I have not tried it.

You can run:

Code:
# slackpkg update
# slackpkg clean-system
# slackpkg install-new
# slackpkg upgrade-all
This will update package lists, clean out obsolete packages automatically, install all new packages, and upgrade all existing packages.

By cleaning out obsolete packages with slackpkg, you save yourself some trouble by doing it on a case by case basis.

This may not work though if you have the new package and the old package installed side by side. I've never tried this, but it might be worth a shot to save time.

Or you could just back up your system and reinstall it using a fresh 14.1 installation media.
 
Old 07-19-2015, 11:11 AM   #20
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
@marlk3: basically that will work, but there are some caveats and additional steps that the OP (and anyone in the same situation) needs to take. That's why I highly recommend everyone in concern to carefully read the article I mentioned in my previous post before proceeding.
 
Old 07-19-2015, 11:20 AM   #21
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Quote:
Originally Posted by Didier Spaier View Post
@marlk3: basically that will work, but there are some caveats and additional steps that the OP (and anyone in the same situation) needs to take. That's why I highly recommend everyone in concern to carefully read the article I mentioned in my previous post before proceeding.
Yes I agree. It was only a suggestion to save the OP time. Then of course if it fails, just do a fresh installation.

I have upgraded only manually using "upgradepkg --install-new" using a locally mounted ISO image from 14.1 to -current on two different laptops. I probably wouldn't trust slackpkg to upgrade a full release since I am a bit of a control freak when it comes to my OS. Though I don't doubt that slackpkg upgrades do work. I've just seen many many botched upgrades due to package manager errors/inconsistencies in other distributions.

Also, to the OP: Be sure to do a system backup before upgrading your system. Not issuing a backup prior to upgrades is always a big risk.
 
Old 07-19-2015, 11:36 AM   #22
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
Save time? Hmm... Yes, but this reminds me the saying: "those who don't have enough time to do it right always have enough time to redo it".

Not sure of my translation though. In French: "On n'a jamais le temps de bien faire mais toujours le temps de recommencer".

Last edited by Didier Spaier; 07-19-2015 at 11:41 AM.
 
1 members found this post helpful.
Old 07-19-2015, 02:20 PM   #23
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
It seems the OP is having some trouble fully understanding slackpkg, how it functions and how to properly use it to keep a system up to date, for security fixes as a minimum. Didier the article you provided is excellent for system upgrades. Additionally I'd recommend:
http://www.slackpkg.org/
and
http://docs.slackware.com/slackware:slackpkg?s[]=slackpkg
Alien Bob also has a great explanation on combining slackpkg+ for access to unofficial repositories while also accessing the official repository mirrors, thus getting official patches for official packages but also those non-official packages upgrades (like multlib and ktown). http://alien.slackbook.org/blog/intr...-repositories/

I've used slackpkg for about 18 months and have used it for a system upgrade from 14.0 to 14.1 with success. However, I've also run in to problems having my slackpkg properly configured when used with slackpkg+. In both cases (upgrade and trouble with slackpkg+) it was due to a misconfigured blacklist! I'm hoping the OP has a properly configured /etc/slackpkg/blacklist (especially since kernel and gcc showed in his list of dups). I'm wondering if the OP should post his slackpkg.conf and blacklist just so we can check the config and give advice? Although it might well be because of misuse of installpkg when upgradepkg should have been used from direct input.
 
Old 07-19-2015, 02:49 PM   #24
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
Let's not forget that slackpkg provides two good man pages, see man slackpkg and man slackpkg.conf.

About slackpkg+: I assume that it is preferable to be well acquainted with slackpkg before using it.

Similarly I think that it is preferable to be well acquainted with all the tools shipped in the pgktools package before using slackpkg. I don't say that for the OP as I am sure that mfoley knows these tools very well.

Last edited by Didier Spaier; 07-19-2015 at 02:58 PM.
 
Old 07-20-2015, 09:59 PM   #25
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,576

Original Poster
Rep: Reputation: 179Reputation: 179
All useful information, thanks. Yes, I've saved the reference to Didier's link for the future. Going forward, I think my simplest solution (as confirmed by Didier's link) is to upgrade new Slackware releases using a fresh install. This, in fact, is what I've always done. What got me in trouble this time is, after installing from DVD, I ran the `slackpkg update; slackpkg upgrade-all` -- and where I went wrong was then restoring my backed up data and production files, which included /var/log (since I like to keep the logfiles until purged by logrotate), and /root (since I run production cron jobs from there and keep those jobs' logfiles). The problem is that slackpkg keeps stuff in /var/log and /root -- didn't realize that. So, configs related to my update/upgrade got clobbered; put back to the old releases' state, actually.

Other than that, I've done nothing special. I've not added anything to the blacklist and don't believe I've run anything other than `slackpkg update <package>`. I'll continue to do updates for individual packages and NOT do an update-all until the next release (cautions on kernel clobbers have scared me).

On more little idiosyncrasy I've come across when doing the Remove at the "(B)lacklist, (R)emove, or (I)gnore" prompt, If you remove a package it appears to attempt to restore any <config>.orig files back to <config>. I had to restore from backup my httpd.conf, httpd-ssl.conf, php.ini and ntp.conf files. Those .orig were generally ones *I* created when manually configuring, not ones created by slackpkg. From now on I'll name my saved config files <config>-org.

My remaining duplicate package list is:

Code:
bind-9.9.5_P1-x86_64-1_slack14.1
bind-9.9.6_P1-x86_64-1_slack14.1
btrfs-progs-20130418-x86_64-1
btrfs-progs-20150213-x86_64-1
glibc-2.17-x86_64-10_slack14.1
glibc-2.17-x86_64-7
glibc-i18n-2.17-x86_64-10_slack14.1
glibc-i18n-2.17-x86_64-7
glibc-profile-2.17-x86_64-10_slack14.1
glibc-profile-2.17-x86_64-7
glibc-solibs-2.17-x86_64-10_slack14.1
glibc-solibs-2.17-x86_64-7
glibc-zoneinfo-2013d-noarch-7
glibc-zoneinfo-2014j-noarch-1
kernel-generic-3.10.17-x86_64-2
kernel-generic-3.10.17-x86_64-3
kernel-huge-3.10.17-x86_64-2
kernel-huge-3.10.17-x86_64-3
kernel-modules-3.10.17-x86_64-2
kernel-modules-3.10.17-x86_64-3
mariadb-5.5.37-x86_64-1_slack14.1
mariadb-5.5.40-x86_64-2_slack14.1
Thanks for the caution about removing kernels. As you can see, I've got 6 in this list. I'll experiment with this.

Here's a bit of a concern. My /etc/lilo.conf has

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/md0
label = Linux
read-only

but there is no /boot/vmlinuz:

Code:
> ls -ltr /boot
total 660
-rwxr-xr-x 1 root root 217646 2011-01-10 16:28 elilo-ia32.efi*
-rwxr-xr-x 1 root root 250510 2011-01-10 16:34 elilo-x86_64.efi*
-rw-r--r-- 1 root root  15634 2011-03-27 01:32 slack.bmp
-rw-r--r-- 1 root root  33192 2013-10-27 18:41 tuxlogo.bmp
-rw-r--r-- 1 root root   6878 2013-10-27 18:41 onlyblue.bmp
-rw-r--r-- 1 root root  22578 2013-10-27 18:41 inside.bmp
lrwxrwxrwx 1 root root     37 2015-01-22 18:39 README.initrd -> /usr/doc/mkinitrd-1.4.8/README.initrd
-rw-r--r-- 1 root root    168 2015-01-22 18:40 boot_message.txt
-rw-r--r-- 1 root root    512 2015-01-22 18:40 boot.0800
-rw------- 1 root root  94720 2015-01-22 19:19 map
-rw-r--r-- 1 root root    512 2015-01-22 19:19 boot.0810
I've checked backups going back months and they are all the same as shown above, yet the computer reboots just fine. Oh well, topic for another thread?

Lastly, my blacklist has nothing in it except: aaa_elflibs. the blacklist file does have the following advice:

# 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

So, I should uncomment all these, right? That will remove the kernels from my "(B)lacklist, (R)emove, or (I)gnore" list, right?

Last edited by mfoley; 07-20-2015 at 10:03 PM.
 
Old 07-21-2015, 02:55 PM   #26
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
Mark, I'm really confused what your process of upgrading packages is going to be? Are you planning to use slackpkg, or are you going to manually use upgradepkg when you see a new package available, and from which repository? I think it is imperative for you to decide on one method and not mix the two, or you'll continue to have an inaccurate /var/log.
If you are going to use slackpkg, then yes you should un-comment the kernel lines in the blacklist.
If you are going to use upgradepkg, then I'd advise not upgrading the kernel items unless doing a full upgrade according to Patrick's instructions in the readme's of the DVD.
Only use installpkg if you are installing a new package, not for upgrading.
My personal recommendation is that you start using slackpkg, importantly because if you set a cron to run weekly, you'll automatically get the security updates that you otherwise have to watch for from the security email list. (You have joined the security email list, Yes?) To properly use slackpkg, read the links previously provided and correct your blacklist (which should also have aaa-elflibs un-commented). To me this is the only reliable way to keep the standard Slackware installation (32 or 64 bit) up to date for security, patches, and newest official apps.

As far as using slackpkg, the command slackpkg update only updates the local repository of potential applications to install, it installs nothing. The slackpkg upgrade-all is what will look at your current packages and determine if a newer (not necessarily newer version) package is available. It will then removepkg the old package without removing the config, then install the new package, then compare the new config for the package with you old config and either replace or offer you the ability to edit, see the differences, or merge the files. Again understanding the slackpkg process from the links previously provided is important. But the advantages of slackpkg is that it gives you a simple, effective, least time consuming manner to keep your system updated.

Hope this all helps.
 
Old 07-30-2015, 11:41 AM   #27
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,576

Original Poster
Rep: Reputation: 179Reputation: 179
Quote:
Originally Posted by bamunds View Post
Mark, I'm really confused what your process of upgrading packages is going to be? Are you planning to use slackpkg, or are you going to manually use upgradepkg when you see a new package available, and from which repository? I think it is imperative for you to decide on one method and not mix the two, or you'll continue to have an inaccurate /var/log.
I've scanned previous postings and don't find that I ever said that I used the upgradepkg or installpkg commands. To the best of my knowledge, I've only ever used slackpkg. As I've said, I think the /var/log repositories got messed up because I restored a production backup and did not exclude /var/log/packages, etc.

Quote:
If you are going to use slackpkg, then yes you should un-comment the kernel lines in the blacklist.
OK, will do that.

Quote:
My personal recommendation is that you start using slackpkg, importantly because if you set a cron to run weekly, you'll automatically get the security updates that you otherwise have to watch for from the security email list.
So, you suggest the `slackpkg update; slackpkg install-new; slackpkg upgrade-all; slackpkg clean-system` sequence be run in a cron job, weekly? Hmm, how does a non-interactive cron running of "update" and "upgrade-all" handle the user interactive pieces? is slackpkg smart enough to figure that out? How does it handle the .new files? Should I change the POSTINST option in /etc/slackpkg/slackpkg.conf?

Quote:
(You have joined the security email list, Yes?)
Well, no I haven't, but security is really my chief goal with this whole process. How do I do that? Is the "security email list" documented somewhere than I can read about what it does, how it works and how to join?

Last edited by mfoley; 07-30-2015 at 11:44 AM.
 
Old 07-30-2015, 12:24 PM   #28
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
Quote:
Originally Posted by mfoley View Post
Is the "security email list" documented somewhere than I can read about what it does, how it works and how to join?
Yes, here. Just send an email to majordomo@slackware.com with "subscribe slackware-security" in the body of the email.

After that you will receive all the Slackware Security Advisories that are also archived there.

Last edited by Didier Spaier; 07-30-2015 at 12:28 PM.
 
Old 07-30-2015, 03:44 PM   #29
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by mfoley View Post
So, you suggest the `slackpkg update; slackpkg install-new; slackpkg upgrade-all; slackpkg clean-system` sequence be run in a cron job, weekly?
With a production system aiming to keep the currently installed version fully patched, you should only need the update (to find out what new patches are available) and upgrade-all (to actually upgrade those packages). Slackware doesn't introduce new packages or remove old ones once a stable build is released, so there'll only be patches to packages available for that version. install-all and clean-system are generally used when upgrading from one stable to another (14.0 to 14.1) or to upgrade to -current (and to keep -current upgraded, since those packages can and do change during the development process) to install the packages that have been introduced to the system and remove the packages that are obsolete. This just won't occur on a stable release.

Quote:
Originally Posted by mfoley View Post
Hmm, how does a non-interactive cron running of "update" and "upgrade-all" handle the user interactive pieces? is slackpkg smart enough to figure that out? How does it handle the .new files? Should I change the POSTINST option in /etc/slackpkg/slackpkg.conf?
Personally, I would never leave something like this automated. Within stable, the likelihood of a conf file needing changes is slim (but could happen if a default setting created a security risk), but I still wouldn't want to just let the system upgrade by itself on the off-chance something goes wrong. Especially if you're running a production server, where downtime is costly. In all actuality, if you're subscribed to the security email, you'll be notified when something is patched and then you can run slackpkg on your system. That is how I would do it.

However, if you do want to actually automate it for cron usage, you'd need to edit /etc/slackpkg/slackpkg.conf and turn "BATCH" mode on (towards the end of the file). I would also verify that DEFAULT_ANSWER and POSTINST are set the way you want them (the whole conf file is well commented so you should be able to figure them out).
 
Old 07-30-2015, 10:55 PM   #30
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
mfoley, I apologize for suggesting you were using upgradepkg. My suggestion to run a cron job, was based on assuming you would know how to respond to interactive request, like responding to .new files. As bassmadrigal says, it would be best to manually update when you receive the security updates emails.

As for your trying to keep the var/log for other application setting, have you considered a cron job to only save everything, except the slackware packages?
 
  


Reply

Tags
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
Upgrading via slackpkg mattca Slackware 9 11-10-2013 12:16 PM
[SOLVED] slackpkg upgrade...not upgrading :-( the_penguinator Slackware 3 03-24-2010 07:14 PM
After upgrading with latest slackpkg samac Slackware 2 09-12-2009 06:12 AM
Upgrading glibc 2.3.4 -> 2.3.6 with slackpkg kuitang Slackware 3 03-13-2006 06:36 PM
upgrading the kernel using slackpkg cavalier Slackware 17 05-27-2005 05:54 PM

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

All times are GMT -5. The time now is 02:05 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
Open Source Consulting | Domain Registration