Skip to content

uninstall: support selectors (e.g. just name) for local packages #1386

Closed
@cgwalters

Description

@cgwalters
[root@localhost ~]# rpm-ostree status
State: idle; auto updates disabled
Deployments:
  ostree://fedora-atomic:fedora/28/x86_64/atomic-host
                   Version: 28.20180425.0 (2018-04-25 19:14:57)
                BaseCommit: 94a9d06eef34aa6774c056356d3d2e024e57a0013b6f8048dbae392a84a137ca
              GPGSignature: Valid signature by 128CF232A9371991C8A65695E08E7E629DB62FB1
       RemovedBasePackages: cockpit-docker-165-1.fc28.x86_64, docker-2:1.13.1-51.git4032bd5.fc28.x86_64, docker-common-2:1.13.1-51.git4032bd5.fc28.x86_64
             LocalPackages: docker-ce-18.05.0.ce-3.fc28.x86_64

● ostree://fedora-atomic:fedora/28/x86_64/atomic-host
                   Version: 28.20180425.0 (2018-04-25 19:14:57)
                    Commit: 94a9d06eef34aa6774c056356d3d2e024e57a0013b6f8048dbae392a84a137ca
              GPGSignature: Valid signature by 128CF232A9371991C8A65695E08E7E629DB62FB1
[root@localhost ~]# rpm-ostree uninstall docker-ce
error: Package/capability 'docker-ce' is not currently requested

But this works:

[root@localhost ~]# rpm-ostree uninstall docker-ce-18.05.0.ce-3.fc28.x86_64
Checking out tree 94a9d06... done
Resolving dependencies... done
Applying 3 overrides

Building filesystem (3/3) [=============] 100%
Writing rpmdb... done
Writing OSTree commit... done
Copying /etc changes: 20 modified, 0 removed, 55 added
Transaction complete; bootconfig swap: no deployment count change: 0
Freed pkgcache branches: 2 size: 157.8 MB
Removed:
  cockpit-docker-165-1.fc28.x86_64
  docker-2:1.13.1-51.git4032bd5.fc28.x86_64
  docker-common-2:1.13.1-51.git4032bd5.fc28.x86_64
Run "systemctl reboot" to start a reboot
[root@localhost ~]# 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions