On Fri, 6 Oct 2023 09:11:29 +0000 (UTC), Robert Webb via openSUSE Users <users@lists.opensuse.org> wrote: [Regarding whether 'zypper dup' installs plocate]]
Could it be that mlocate is only replaced if it was automatically installed? [...]
The answer is no. It does not depend on the auto-installed status of mlocate. Even 'zypper install plocate' requires the user-directed de-installation of mlocate, in cases like mine, whether or not mlocate was auto-installed. First, mlocate was user-installed: # zypper se '*locate' S | Name | Summary | Type ---+---------+-------------------------------------+-------- i+ | mlocate | A utility for finding files by name | package | plocate | A much faster locate(1) | package # # zypper in -D --details plocate Loading repository data... Reading installed packages... Resolving package dependencies... Problem: the installed mlocate-lang-0.26-34.1.noarch requires 'mlocate = 0.26', but this requirement cannot be provided Solution 1: deinstallation of mlocate-lang-0.26-34.1.noarch Solution 2: do not install plocate-1.1.19-1.1.x86_64 Solution 3: break mlocate-lang-0.26-34.1.noarch by ignoring some of its dependencies Choose from above solutions by number or cancel [1/2/3/c/d/?] (c): 1 Resolving dependencies... Resolving package dependencies... The following NEW package is going to be installed: plocate 1.1.19-1.1 x86_64 Main Repository (OSS) openSUSE The following 2 packages are going to be REMOVED: mlocate 0.26-34.1 x86_64 openSUSE mlocate-lang 0.26-34.1 noarch openSUSE 1 new package to install, 2 to remove. Overall download size: 162.9 KiB. Already cached: 0 B. After the operation, additional 140.9 KiB will be used. Continue? [y/n/v/...? shows all options] (y): n # Then: On Fri, 6 Oct 2023 12:38:53 +0300, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
On 06.10.2023 12:11, Robert Webb via openSUSE Users wrote:
Is there a way to change the 'automatically installed' flag?
Remove package from /var/lib/zypp/AutoInstalled
So, I *added* "mlocate" to the file to change its status the other way. Second, with mlocate now as auto-installed: # zypper se '*locate' S | Name | Summary | Type --+---------+-------------------------------------+-------- i | mlocate | A utility for finding files by name | package | plocate | A much faster locate(1) | package The result of 'zypper in -D --details plocate' does not change. -- Robert Webb