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

Reply via email to