• Disable upgrades on grub

    From xuser@21:1/5 to All on Thu May 29 20:00:01 2025
    How to configure apt to not install upgrades for grub?

    xuser@sdf.org
    SDF Public Access UNIX System - http://sdf.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to xuser on Thu May 29 20:30:01 2025
    On Thu, May 29, 2025 at 17:54:00 +0000, xuser wrote:
    How to configure apt to not install upgrades for grub?

    echo "PKGNAME hold" | sudo dpkg --set-selections

    Do that for each package you want to put on hold.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Thu May 29 20:50:01 2025
    Greg Wooledge composed on 2025-05-29 14:27 (UTC-0400):

    On Thu, May 29, 2025 at 17:54:00 +0000, xuser wrote:

    How to configure apt to not install upgrades for grub?

    echo "PKGNAME hold" | sudo dpkg --set-selections

    Do that for each package you want to put on hold.

    I did not know that. I use:

    apt-mark hold packagename - to lock
    apt-mark unhold packagename - to unlock
    apt-mark showhold packagename - to list locked packages
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From fxkl47BF@protonmail.com@21:1/5 to Greg Wooledge on Thu May 29 20:40:01 2025
    On Thu, 29 May 2025, Greg Wooledge wrote:

    On Thu, May 29, 2025 at 17:54:00 +0000, xuser wrote:
    How to configure apt to not install upgrades for grub?

    echo "PKGNAME hold" | sudo dpkg --set-selections

    Do that for each package you want to put on hold.


    is that the same as apt-mark hold PKGNAME

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to fxkl47BF@protonmail.com on Thu May 29 20:50:01 2025
    On Thu, May 29, 2025 at 18:38:31 +0000, fxkl47BF@protonmail.com wrote:
    On Thu, 29 May 2025, Greg Wooledge wrote:

    On Thu, May 29, 2025 at 17:54:00 +0000, xuser wrote:
    How to configure apt to not install upgrades for grub?

    echo "PKGNAME hold" | sudo dpkg --set-selections

    Do that for each package you want to put on hold.


    is that the same as apt-mark hold PKGNAME

    Oh, I guess that also exists.

    DESCRIPTION
    apt-mark can be used as a unified front-end to set various settings for
    a package, such as marking a package as being automatically/manually
    installed or changing dpkg selections such as hold, install, deinstall
    and purge which are respected e.g. by apt-get dselect-upgrade or
    aptitude.

    I'm old, so once I learn an (old) thing, I have lower chances of learning
    a new thing that does the same thing.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From xuser@21:1/5 to Felix Miata on Thu May 29 21:10:01 2025
    Thanks

    On Thu, 29 May 2025, Felix Miata wrote:

    Date: Thu, 29 May 2025 14:41:08 -0400
    From: Felix Miata <mrmazda@earthlink.net>
    To: debian-user@lists.debian.org
    Subject: Re: Disable upgrades on grub
    Resent-Date: Thu, 29 May 2025 18:41:29 +0000 (UTC)
    Resent-From: debian-user@lists.debian.org

    Greg Wooledge composed on 2025-05-29 14:27 (UTC-0400):

    On Thu, May 29, 2025 at 17:54:00 +0000, xuser wrote:

    How to configure apt to not install upgrades for grub?

    echo "PKGNAME hold" | sudo dpkg --set-selections

    Do that for each package you want to put on hold.

    I did not know that. I use:

    apt-mark hold packagename - to lock
    apt-mark unhold packagename - to unlock
    apt-mark showhold packagename - to list locked packages
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata



    xuser@sdf.org
    SDF Public Access UNIX System - http://sdf.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Monnier@21:1/5 to All on Thu May 29 23:00:01 2025
    echo "PKGNAME hold" | sudo dpkg --set-selections
    is that the same as apt-mark hold PKGNAME

    Reminds me that I wish we could add a comment describing why it's on
    hold (or alternatively, provide a config file where we can write which
    package should be held, using a format that allows comments).


    Stefan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Thu May 29 23:50:01 2025
    Stefan Monnier composed on 2025-05-29 16:56 (UTC-0400):

    echo "PKGNAME hold" | sudo dpkg --set-selections
    is that the same as apt-mark hold PKGNAME

    Reminds me that I wish we could add a comment describing why it's on
    hold (or alternatively, provide a config file where we can write which package should be held, using a format that allows comments).

    I didn't check Bookworm, but:

    # grep RETT /etc/os-release
    PRETTY_NAME="Debian GNU/Linux trixie/sid"
    # aptitude search zypp
    p libzypp-bin - openSUSE/SLES package management
    p libzypp-common - openSUSE/SLES package management
    p libzypp-config - openSUSE/SLES package management
    p libzypp-dev - openSUSE/SLES package management
    p libzypp-doc - openSUSE/SLES package management
    p libzypp1735 - openSUSE/SLES package management
    p zypper - command line software manager using libzypp
    p zypper-common - command line software manager using libzypp
    p zypper-doc - command line software manager using libzypp
    # man zypper

    ...
    addlock (al) [options] lock-spec...
    Add a package lock. Specify packages to lock as explained above.
    -r, --repo alias|name|#|URI
    Restrict the lock to the specified repository.
    -t, --type type
    Lock only packages of specified type (default: package). See section
    Package Types for list of available package types.

    -m, --comment comment
    Add a comment for package lock.
    # apt-get install zypper
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    linux-image-6.1.0-25-amd64
    Use 'apt autoremove' to remove it.
    The following additional packages will be installed:
    augeas-lenses debugedit libaugeas0 libboost-thread1.83.0 libdw1t64 libfsverity0
    liblua5.3-0
    librpm-sequoia-1 librpm10 librpmbuild10 librpmio10 librpmsign10 libsolv-tools libsolv1 libsolvext1
    libyaml-cpp0.8 libzypp1735 rpm rpm-common rpm2cpio zypper-common
    Suggested packages:
    augeas-doc augeas-tools libzypp-doc alien elfutils rpmlint rpm-i18n zypper-doc
    Recommended packages:
    libproxy1v5 libzypp-common libzypp-config libzypp-bin
    The following NEW packages will be installed:
    augeas-lenses debugedit libaugeas0 libboost-thread1.83.0 libdw1t64 libfsverity0
    liblua5.3-0
    librpm-sequoia-1 librpm10 librpmbuild10 librpmio10 librpmsign10 libsolv-tools libsolv1 libsolvext1
    libyaml-cpp0.8 libzypp1735 rpm rpm-common rpm2cpio zypper zypper-common
    0 upgraded, 22 newly installed, 0 to remove and 268 not upgraded.
    Need to get 8,056 kB of archives.
    After this operation, 32.2 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    ...
    Processing triggers for man-db (2.13.0-1) ...
    Processing triggers for dbus (1.16.2-2) ...
    Processing triggers for libc-bin (2.41-6) ...
    # zypper ref
    Warning: There are no enabled repositories defined.
    Use 'zypper addrepo' or 'zypper modifyrepo' commands to add or enable repositories.
    #
    Zypper is by far my favorite package manager, used in *SUSE and its derivatives,
    but I just copy repo files off my LAN, or download them from mirrors, rather than
    running addrepo or its ilk, so I must learn what to feed them using Debian before
    going further. No search results for examples so far...
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)