[opensuse-factory] Upgrade to 15.0: Will Zypper dup delete packages which are not in any Enabled repos?
![](https://seccdn.libravatar.org/avatar/5d980c34acb9a0a772664dbbf01d7b3e.jpg?s=120&d=mm&r=g)
Actually I have 2 question, perhaps the first is just a confirmation. 1. From reading the docs, I understand `zypped dup` will delete "unavailable" packages (packages which are NOT t in any Enabled repo). Is that correct? 2. If the above is correct, is there an option not to delete such "unavailable" packages? Thanks Milan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
07.04.2018 22:39, Milan Zimmermann пишет:
Actually I have 2 question, perhaps the first is just a confirmation.
1. From reading the docs, I understand `zypped dup` will delete "unavailable" packages (packages which are NOT t in any Enabled repo). Is that correct?
No. It will delete packages that are explicitly marked for deletion in distribution meta-data. It may offer to delete packages to resolve conflicts, but that has nothing to do with their origin.
2. If the above is correct, is there an option not to delete such "unavailable" packages?
I do not think there is single command to do it. You can list all packages in @System repository and remove them manually. YaST GUI may offer some assistance here. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
07.04.2018 22:52, Andrei Borzenkov пишет:
07.04.2018 22:39, Milan Zimmermann пишет:
Actually I have 2 question, perhaps the first is just a confirmation.
1. From reading the docs, I understand `zypped dup` will delete "unavailable" packages (packages which are NOT t in any Enabled repo). Is that correct?
No. It will delete packages that are explicitly marked for deletion in distribution meta-data. It may offer to delete packages to resolve conflicts, but that has nothing to do with their origin.
2. If the above is correct, is there an option not to delete such "unavailable" packages?
I do not think there is single command to do it. You can list all packages in @System repository and remove them manually. YaST GUI may offer some assistance here.
Apparently "Unmaintained packages" in YaST refer to exactly this - packages that are not found in any repository. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
On 2018-04-07 22:02, Andrei Borzenkov wrote:
07.04.2018 22:52, Andrei Borzenkov пишет:
Apparently "Unmaintained packages" in YaST refer to exactly this - packages that are not found in any repository.
Yes. -- Cheers/Saludos Carlos E. R. (testing openSUSE Leap 15.0, at Minas-Anor) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/5d980c34acb9a0a772664dbbf01d7b3e.jpg?s=120&d=mm&r=g)
Thanks Andrei - a comment inline On Sat, Apr 7, 2018 at 2:52 PM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
07.04.2018 22:39, Milan Zimmermann пишет:
Actually I have 2 question, perhaps the first is just a confirmation.
1. From reading the docs, I understand `zypped dup` will delete "unavailable" packages (packages which are NOT t in any Enabled repo). Is that correct?
No. It will delete packages that are explicitly marked for deletion in distribution meta-data. It may offer to delete packages to resolve conflicts, but that has nothing to do with their origin.
Ok - this is good (for me at least). I want my "unknown origin" packages kept, and I was worried based on this section man zypper ``` dist-upgrade (dup) [options] Perform a distribution upgrade. This command applies the state of (specified) repositories onto the system; upgrades (or even downgrades) installed packages to versions found in repositories, removes packages that are no longer in the repositories and pose a dependency problem ``` so I do have to analyse the messages carefully (the list may be long) ... if I come across a package offered to be deleted because of "dependency problem", that I want, I suppose there is no way to actually do a "zypper dup"?
2. If the above is correct, is there an option not to delete such "unavailable" packages?
I do not think there is single command to do it. You can list all packages in @System repository and remove them manually. YaST GUI may offer some assistance here.
Right. But I do not want to remove them (manually or otherwise), I want to keep them ;) Thanks
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/bce881f00c17a1bf997473f19b54e1d4.jpg?s=120&d=mm&r=g)
On Sat, Apr 07, Andrei Borzenkov wrote:
07.04.2018 22:39, Milan Zimmermann пишет:
Actually I have 2 question, perhaps the first is just a confirmation.
1. From reading the docs, I understand `zypped dup` will delete "unavailable" packages (packages which are NOT t in any Enabled repo). Is that correct?
No. It will delete packages that are explicitly marked for deletion in distribution meta-data. It may offer to delete packages to resolve conflicts, but that has nothing to do with their origin.
This is not really correct. zypper dup will delete packages, which creates conflicts and are "orphaned", means not available in the current repositories. If they are not orphaned, you will get a conflict you have to solve manually.
2. If the above is correct, is there an option not to delete such "unavailable" packages?
You need to lock this packages and then manually solve all the conflicts this packages create. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & CaaSP SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
08.04.2018 08:58, Thorsten Kukuk пишет:
On Sat, Apr 07, Andrei Borzenkov wrote:
07.04.2018 22:39, Milan Zimmermann пишет:
Actually I have 2 question, perhaps the first is just a confirmation.
1. From reading the docs, I understand `zypped dup` will delete "unavailable" packages (packages which are NOT t in any Enabled repo). Is that correct?
No. It will delete packages that are explicitly marked for deletion in distribution meta-data. It may offer to delete packages to resolve conflicts, but that has nothing to do with their origin.
This is not really correct. zypper dup will delete packages, which creates conflicts and are "orphaned", means not available in the current repositories. If they are not orphaned, you will get a conflict you have to solve manually.
Is it possible to change it to always ask? Really, deleting silently something without asking me first does not look nice. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Carlos E. R.
-
Milan Zimmermann
-
Thorsten Kukuk