Re: How to force removal of protected package?

2023-11-17 Thread Jeffrey Walton
On Fri, Nov 17, 2023 at 3:54 AM Samuel Sieb  wrote:
>
> On 11/17/23 00:31, Jeffrey Walton wrote:
> > $ sudo dnf remove gnome*
> > Error:
> > Problem: The operation would result in removing the following protected 
> > package
> > s: gnome-shell
> > (try to add '--skip-broken' to skip uninstallable packages)
> >
> > I've read the dnf(8) man page, but I don't see how to remove a
> > protected package.
> >
> > How do I force the removal of a protected package?
>
> It's protected by fedora-release-identity-workstation
> You can either pick another specific identity or just run:
> dnf install fedora-release-identity-basic --allowerasing

Thanks. I did not know about fedora-release-identity-*. Or that there
were so many of them:

$ dnf search fedora-release-identity
...
fedora-release-identity-basic.noarch : Package providing the basic Fedora
: identity
fedora-release-identity-budgie.noarch : Package providing the identity for
 : Fedora Budgie Spin
fedora-release-identity-cinnamon.noarch : Package providing the identity for
   : Fedora Cinnamon Spin
fedora-release-identity-cloud.noarch : Package providing the identity for Fedora
: Cloud Edition
fedora-release-identity-compneuro.noarch : Package providing the identity for
: Fedora Comp Neuro Lab
fedora-release-identity-container.noarch : Package providing the identity for
: Fedora Container Base Image
fedora-release-identity-coreos.noarch : Package providing the identity for
 : Fedora CoreOS
fedora-release-identity-designsuite.noarch : Package providing the identity for
  : Fedora Design Suite Lab
fedora-release-identity-i3.noarch : Package providing the identity for Fedora i3
 : Spin
fedora-release-identity-iot.noarch : Package providing the identity for Fedora
  : IoT Edition
fedora-release-identity-kde.noarch : Package providing the identity for Fedora
  : KDE Plasma Spin
fedora-release-identity-kinoite.noarch : Package providing the identity for
  : Fedora Kinoite
fedora-release-identity-lxqt.noarch : Package providing the identity for Fedora
   : LXQt Spin
fedora-release-identity-matecompiz.noarch : Package providing the identity for
 : Fedora MATE-Compiz Spin
fedora-release-identity-mobility.noarch : Package providing the identity for
   : Fedora Mobility
fedora-release-identity-onyx.noarch : Package providing the identity for Fedora
   : Onyx
fedora-release-identity-sericea.noarch : Package providing the identity for
  : Fedora Sericea
fedora-release-identity-server.noarch : Package providing the identity for
 : Fedora Server Edition
fedora-release-identity-silverblue.noarch : Package providing the identity for
 : Fedora Silverblue
fedora-release-identity-snappy.noarch : Package providing the identity for
 : Fedora Snappy environments
fedora-release-identity-soas.noarch : Package providing the identity for Fedora
   : Sugar on a Stick
fedora-release-identity-sway.noarch : Package providing the identity for Fedora
   : Sway Spin
fedora-release-identity-workstation.noarch : Package providing the identity for
  : Fedora Workstation Edition
fedora-release-identity-xfce.noarch : Package providing the identity for Fedora
   : Xfce Spin

Jeff
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: How to force removal of protected package?

2023-11-17 Thread Samuel Sieb

On 11/17/23 00:31, Jeffrey Walton wrote:

$ sudo dnf remove gnome*
Error:
Problem: The operation would result in removing the following protected package
s: gnome-shell
(try to add '--skip-broken' to skip uninstallable packages)

I've read the dnf(8) man page, but I don't see how to remove a
protected package.

How do I force the removal of a protected package?


It's protected by fedora-release-identity-workstation
You can either pick another specific identity or just run:
dnf install fedora-release-identity-basic --allowerasing
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


How to force removal of protected package?

2023-11-17 Thread Jeffrey Walton
Hi Everyone,

I had a dnf-system-upgrade go sideways. It was due, in part, due to a
Python3 install in /usr/local. The other part had to do with the
machine going to sleep while I was ssh'd into the machine. I now want
to get rid of GNOME and use the machine from the command line.

$ sudo dnf group remove gnome-desktop
Warning: Module or Group 'gnome-desktop' is not installed.
Dependencies resolved.
Nothing to do.
Complete!

$ sudo dnf group remove @gnome-desktop
Warning: Module or Group '@gnome-desktop' is not installed.
Dependencies resolved.
Nothing to do.
Complete!

$ sudo dnf group remove gnome-desktop-environment
Warning: Module or Group 'gnome-desktop-environment' is not installed.
Dependencies resolved.
Nothing to do.
Complete!

$ sudo dnf remove gnome*
Error:
Problem: The operation would result in removing the following protected package
s: gnome-shell
(try to add '--skip-broken' to skip uninstallable packages)

I've read the dnf(8) man page, but I don't see how to remove a
protected package.

How do I force the removal of a protected package?

Thanks in advance.
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue