LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Upgrading multilib packages (https://www.linuxquestions.org/questions/slackware-14/upgrading-multilib-packages-895386/)

ADX 08-03-2011 04:18 PM

Upgrading multilib packages
 
Hi,

I recently downloaded and installed 32bit compatibility libraries and the glibc/gcc packages from alienbobs site.

I added "[0-9]+alien" to my /etc/slackpkg/blacklist like the page suggested so slackpkg wouldn't replace them. This leads me to one question, how would one go about upgrading these packages/libraries in the future if needed?

ReaperX7 08-03-2011 10:22 PM

You shouldn't need to upgrade any software unless absolutely necessary, often what you can do is check the version number on the Slackware FTP against the Multilib packages and only get the multilib package if there is an update.

phenixia2003 08-04-2011 02:38 AM

Hello,

Quote:

Originally Posted by ADX (Post 4432992)

I recently downloaded and installed 32bit compatibility libraries and the glibc/gcc packages from alienbobs site.

I added "[0-9]+alien" to my /etc/slackpkg/blacklist like the page suggested so slackpkg wouldn't replace them. This leads me to one question, how would one go about upgrading these packages/libraries in the future if needed?

To keep the multilib up to date you can use the tools I wrote : multilibpkg and compat32pkg.

multilibpkg is dedicated to the management (install, check-updates, upgrade, ...) of the 64-bit part of the multilib (ie the multilib version of packages
glibc*, gcc*, and, the package compat32-tools), while compat32pkg is dedicated to the management (install, check-updates, upgrade, ...) of the
32-bit part of the multilib (ie the 32-bit compatibility layer) and a bit more.

For example to list the available updates for the 32-bit compatibility layer (on slackware-13.37), you're going to use compat32pkg this way :

Code:

$ compat32pkg --mirror @WorldWide-13.37 --list-updates layer-32

compat32pkg ver. 1.4.110408 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--list-updates] Started on Thu Aug  4 09:24:11 2011                                               
[--list-updates]  Using mirror ftp://mirrors.kernel.org/slackware/slackware-13.37
[--list-updates]  Local system is Slackware/x86_64 version 13.37.0
[--list-updates]  Mirrored system is Slackware/i486 version 13.37
[--list-updates]  Slackware-32 packages will be stored into /var/cache/compat32pkg/slackware-32
[--list-updates]  compat32 packages will be stored into /var/cache/compat32pkg/compat-32
[--list-updates]  Configuration file for "layer-32" : /etc/compat32pkg/multilib-32bit-packages.lst version 1.4.110522
                                                                                   
[--list-updates]  1 update(s) were found (1,742 sec.)

[ package-basename                ] [ installed version                ]    [ update version                  ]
  libpng                              1.4.5 build 1                      -->  1.4.8 build 1_slack13.37       

[--list-updates] Ended on Thu Aug  4 09:24:14 2011

When updates are available, you can apply them using compat32pkg this way :

Code:

$ compat32pkg --mirror @WorldWide-13.37 --upgrade layer-32

compat32pkg ver. 1.4.110408 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--upgrade] Started on Thu Aug  4 09:30:22 2011                                                   
[--upgrade]  Using mirror ftp://mirrors.kernel.org/slackware/slackware-13.37
[--upgrade]  Local system is Slackware/x86_64 version 13.37.0
[--upgrade]  Mirrored system is Slackware/i486 version 13.37
[--upgrade]  Slackware-32 packages will be stored into /var/cache/compat32pkg/slackware-32
[--upgrade]  compat32 packages will be stored into /var/cache/compat32pkg/compat-32
[--upgrade]  Configuration file for "layer-32" : /etc/compat32pkg/multilib-32bit-packages.lst version 1.4.110522
                                                                                   
[--upgrade]  1 update(s) were found (1,926 sec.)

[--upgrade]  Processing package #1/1: libpng version 1.4.8 build 1_slack13.37
[--upgrade]    Package successfully downloaded (/var/cache/compat32pkg/slackware-32/libpng-1.4.8-i486-1_slack13.37.txz)
[--upgrade]    Package converted to format compat32 (/var/cache/compat32pkg/compat-32/libpng-compat32-1.4.8-x86_64-1_slack13.37.txz)
[--upgrade]    Package successfully installed.                             

[--upgrade] Ended on Thu Aug  4 09:30:43 2011


Cheers.

--
SeB

chrisretusn 08-04-2011 05:52 AM

Agree, Multilibpkg and Compat32pkg make life simple. I use them both.

Thanks SeB!

slackass 08-04-2011 07:14 PM

The way I do it is I keep a local mirror of AlienBob's stuff with rsync and just use
upgradepkg.

phenixia2003 08-05-2011 04:00 AM

Hello,

Quote:

Originally Posted by slackass (Post 4434074)
The way I do it is I keep a local mirror of AlienBob's stuff with rsync and just use
upgradepkg.

But, as the 32-bit layer repositories for Slackware-stables are not updated, you're going to miss security/bug
fixes related to some of these packages, and all of the packages that could have been added to the 32-bit layer.
For example, in case of Slackware64-13.0, you will miss the following :

Code:

  bzip2            1.0.6  build 1_slack13.0
  cups            1.3.11  build 2_slack13.0
  openssl-solibs  0.9.8r  build 1_slack13.0
  cairo            1.8.8  build 1_slack13.0
  expat            2.0.1  build 2_slack13.0
  lesstif          (*)
  libpng          1.2.44  build 1_slack13.0
  libtiff          3.8.2  build 5_slack13.0
  seamonkey-solibs 2.0.14  build 1_slack13.0
  gnutls          2.8.4  build 1_slack13.0
  openssl          0.9.8r  build 1_slack13.0
  mesa            7.5    build 2

  (*) this package has been added to the 32-bit layer
      since 13.37


Cheers.

--
SeB

slackass 08-06-2011 12:14 AM

Quote:

Originally Posted by phenixia2003 (Post 4434344)
Hello,



But, as the 32-bit layer repositories for Slackware-stables are not updated, you're going to miss security/bug
fixes related to some of these packages, and all of the packages that could have been added to the 32-bit layer.
For example, in case of Slackware64-13.0, you will miss the following :

Code:

  bzip2            1.0.6  build 1_slack13.0
  cups            1.3.11  build 2_slack13.0
  openssl-solibs  0.9.8r  build 1_slack13.0
  cairo            1.8.8  build 1_slack13.0
  expat            2.0.1  build 2_slack13.0
  lesstif          (*)
  libpng          1.2.44  build 1_slack13.0
  libtiff          3.8.2  build 5_slack13.0
  seamonkey-solibs 2.0.14  build 1_slack13.0
  gnutls          2.8.4  build 1_slack13.0
  openssl          0.9.8r  build 1_slack13.0
  mesa            7.5    build 2

  (*) this package has been added to the 32-bit layer
      since 13.37


Cheers.

--
SeB

Eric keeps the his mirror updated. When he updates, I update my local mirror.

ADX 08-09-2011 12:41 AM

Quote:

Originally Posted by phenixia2003 (Post 4433311)
Hello,



To keep the multilib up to date you can use the tools I wrote : multilibpkg and compat32pkg.

multilibpkg is dedicated to the management (install, check-updates, upgrade, ...) of the 64-bit part of the multilib (ie the multilib version of packages
glibc*, gcc*, and, the package compat32-tools), while compat32pkg is dedicated to the management (install, check-updates, upgrade, ...) of the
32-bit part of the multilib (ie the 32-bit compatibility layer) and a bit more.

For example to list the available updates for the 32-bit compatibility layer (on slackware-13.37), you're going to use compat32pkg this way :

Code:

$ compat32pkg --mirror @WorldWide-13.37 --list-updates layer-32

compat32pkg ver. 1.4.110408 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--list-updates] Started on Thu Aug  4 09:24:11 2011                                               
[--list-updates]  Using mirror ftp://mirrors.kernel.org/slackware/slackware-13.37
[--list-updates]  Local system is Slackware/x86_64 version 13.37.0
[--list-updates]  Mirrored system is Slackware/i486 version 13.37
[--list-updates]  Slackware-32 packages will be stored into /var/cache/compat32pkg/slackware-32
[--list-updates]  compat32 packages will be stored into /var/cache/compat32pkg/compat-32
[--list-updates]  Configuration file for "layer-32" : /etc/compat32pkg/multilib-32bit-packages.lst version 1.4.110522
                                                                                   
[--list-updates]  1 update(s) were found (1,742 sec.)

[ package-basename                ] [ installed version                ]    [ update version                  ]
  libpng                              1.4.5 build 1                      -->  1.4.8 build 1_slack13.37       

[--list-updates] Ended on Thu Aug  4 09:24:14 2011

When updates are available, you can apply them using compat32pkg this way :

Code:

$ compat32pkg --mirror @WorldWide-13.37 --upgrade layer-32

compat32pkg ver. 1.4.110408 (stable)

(INFO) No default mirror was defined in configuration's script /etc/compat32pkg/compat32pkg.conf
[--upgrade] Started on Thu Aug  4 09:30:22 2011                                                   
[--upgrade]  Using mirror ftp://mirrors.kernel.org/slackware/slackware-13.37
[--upgrade]  Local system is Slackware/x86_64 version 13.37.0
[--upgrade]  Mirrored system is Slackware/i486 version 13.37
[--upgrade]  Slackware-32 packages will be stored into /var/cache/compat32pkg/slackware-32
[--upgrade]  compat32 packages will be stored into /var/cache/compat32pkg/compat-32
[--upgrade]  Configuration file for "layer-32" : /etc/compat32pkg/multilib-32bit-packages.lst version 1.4.110522
                                                                                   
[--upgrade]  1 update(s) were found (1,926 sec.)

[--upgrade]  Processing package #1/1: libpng version 1.4.8 build 1_slack13.37
[--upgrade]    Package successfully downloaded (/var/cache/compat32pkg/slackware-32/libpng-1.4.8-i486-1_slack13.37.txz)
[--upgrade]    Package converted to format compat32 (/var/cache/compat32pkg/compat-32/libpng-compat32-1.4.8-x86_64-1_slack13.37.txz)
[--upgrade]    Package successfully installed.                             

[--upgrade] Ended on Thu Aug  4 09:30:43 2011


Cheers.

--
SeB

Hi Phenixia2003, your post was very informative and helpful. These are excellent tools also.

Thanks!


All times are GMT -5. The time now is 07:59 PM.