Package Base Details: linux-versioned-bin

Git Clone URL: https://aur.archlinux.org/linux-versioned-bin.git (read-only, click to copy)
Submitter: chrisjbillington
Maintainer: chrisjbillington
Last Packager: chrisjbillington
Votes: 5
Popularity: 0.25
First Submitted: 2020-02-19 21:45
Last Updated: 2021-07-27 07:17

Pinned Comments

chrisjbillington commented on 2020-02-28 17:48

These packages allow you to have multiple versions of the Arch kernel installed simultaneously. The intended use is to install the linux-versioned-bin (and linux-versioned-headers-bin if you use out-of-tree drivers) dummy package, using an AUR helper or otherwise in a way that automatically processes dependencies. This dummy package depends on the latest versioned kernel package, but older kernel packages will remain on your system as orphaned packages to be removed later. You can find and remove them with the remove-orphaned-kernels script, which will uninstall orphaned kernel packages except those corresponding to the kernel that is currently running. If you use GRUB, you will also need to ensure its config is updated after kernels are added or removed. Installing the grub-hook package will ensure this is done automatically.

To switch from the regular Arch kernel package to these versioned packages, you can do the following (using the AUR helper yay for example):

# Remove linux, linux-headers if installed, and any out-of-tree drivers for the regular kernel:
$ pacman -Rs linux [linux-headers] [nvidia] [...]
# Install dkms versions of any out-of-tree drivers you need:
$ pacman -S [nvidia-dkms] [...]
# If using GRUB, install grub-hook before installing kernels:
$ yay -S grub-hook
# Install the kernel dummy package, and headers dummy package if you use out-of-tree drivers:
$ yay -S linux-versioned-bin [linux-versioned-headers-bin]

This is also discussed here.

See also:

Latest Comments

chrisjbillington commented on 2021-04-21 23:08

@patlefort yes, not much trouble, here you go:

https://aur.archlinux.org/pkgbase/linux-zen-versioned-bin

Please test :)

patlefort commented on 2021-04-21 16:51

Would it be possible for you to create a versioned linux-zen package, if it's not too much trouble?

chrisjbillington commented on 2021-02-25 03:34

The script I use to update this package (included in the git repository for this AUR package) now automatically syncs metadata from the kernel packages in [core], i.e. depends, provides, conflicts etc (some of which changed recently). So updates should proceed consistently and reliably for the foreseeable without manual intervention required from me. Let me know if you encounter any issues.

chrisjbillington commented on 2020-08-27 23:45

Thanks @sileht, I failed to keep the package in sync with the repo linux PKGBUILD with respect to these changes. Perhaps I should redo how I update this PKGBUILD to make it be a patch on top of the repo linux's PKGBUILD.

Your changes are included in the latest update.

sileht commented on 2020-08-27 13:14

Just in case, a more digest format of my change:

commit 9ab0ff54039e70fbb241c961ba746d39be1e147b
Author: Mehdi Abaakouk <sileht@sileht.net>
Committer: Mehdi Abaakouk <sileht@sileht.net>
Date:   Thu Aug 27 00:52:44 2020 (14 hours ago)

    fix: add missing provides and replaces

diff --git a/PKGBUILD b/PKGBUILD
index f95b27d..f01d88a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -68,6 +68,8 @@ package_linux5.8.3.arch1-1-bin() {
   conflicts=("${_pkgname}")
   optdepends=('crda: to set the correct wireless channels of your country'
               'linux-firmware: firmware images needed for some devices')
+  provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
+  replaces=(virtualbox-guest-modules-arch wireguard-arch)
   tar -xf "${_kernpkg}" -C "${pkgdir}"
   rm "${pkgdir}"/{.MTREE,.BUILDINFO,.PKGINFO}
   sed -ic "s/${_pkgname}/${KERNNAME}/" "${pkgdir}/usr/lib/modules/${KERNNAME}/pkgbase"

sileht commented on 2020-08-23 20:49

Hi,

I got some issue with wireguard and this kernel package

Looks like this is missing from the kernelX.Y.Z.arch1.1-bin package:

  provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
  replaces=(virtualbox-guest-modules-arch wireguard-arch)

btw, thx for this kernel :)

chrisjbillington commented on 2020-02-28 17:48

These packages allow you to have multiple versions of the Arch kernel installed simultaneously. The intended use is to install the linux-versioned-bin (and linux-versioned-headers-bin if you use out-of-tree drivers) dummy package, using an AUR helper or otherwise in a way that automatically processes dependencies. This dummy package depends on the latest versioned kernel package, but older kernel packages will remain on your system as orphaned packages to be removed later. You can find and remove them with the remove-orphaned-kernels script, which will uninstall orphaned kernel packages except those corresponding to the kernel that is currently running. If you use GRUB, you will also need to ensure its config is updated after kernels are added or removed. Installing the grub-hook package will ensure this is done automatically.

To switch from the regular Arch kernel package to these versioned packages, you can do the following (using the AUR helper yay for example):

# Remove linux, linux-headers if installed, and any out-of-tree drivers for the regular kernel:
$ pacman -Rs linux [linux-headers] [nvidia] [...]
# Install dkms versions of any out-of-tree drivers you need:
$ pacman -S [nvidia-dkms] [...]
# If using GRUB, install grub-hook before installing kernels:
$ yay -S grub-hook
# Install the kernel dummy package, and headers dummy package if you use out-of-tree drivers:
$ yay -S linux-versioned-bin [linux-versioned-headers-bin]

This is also discussed here.

See also: