[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [atomic-devel] reinstall removed base packages



On 06/05/2018 06:48 AM, arnaud gaboury wrote:


On Tue, Jun 5, 2018 at 12:39 PM arnaud gaboury <arnaud gaboury gmail com <mailto:arnaud gaboury gmail com>> wrote:

    I removed some base packages (everything docker related) to install
    docker-ce.

    Here is the status:

    -----------------------
      # rpm-ostree status
    State: idle; auto updates disabled
    Deployments:
    ● ostree://fedora-atomic:fedora/28/x86_64/updates/atomic-host
                        Version: 28.20180604.0 (2018-06-04 12:55:05)
                     BaseCommit:
    7eea73af71be1a16911781f580c6ded2542a35ae2204dacba457d1e0c6c15995
                   GPGSignature: Valid signature by
    128CF232A9371991C8A65695E08E7E629DB62FB1
            RemovedBasePackages: cockpit-docker-169-1.fc28.x86_64,
    docker-2:1.13.1-56.git6c336e4.fc28.x86_64,
    container-selinux-2:2.61-1.git9b55129.fc28.noarch,
    docker-common-2:1.13.1-56.git6c336e4.fc28.x86_64
                LayeredPackages: ansible bind-utils byacc flex gcc gdisk
    git git-all git-subtree
                                 glibc-langpack-en jq kubernetes-client
    libmodulemd libxcrypt-devel man-db
                                 man-pages mcstrans nano nmap ntp
    ntpstat pam_ssh pass perl-MailTools
                                 python2-dnf python3-smartcols ranger
    rng-tools rpmconf rsyslog
                                 rxvt-unicode-256color
    selinux-policy-devel setools setroubleshoot-server
                                 systemd-journal-remote unzip utf8proc
    util-linux-user vim vim-enhanced wget
                                 zsh
                  LocalPackages:
    docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch
    docker-ce-17.03.2.ce-1.el7.centos.x86_64 sshguard-2.1.0-1.el7.lux.x86_64
    ---------------------

    I want to remove the local packages and reinstall the base ones.
     From what I read here[0], this is the command to run, but it
    returns an error

    ----------------------
      # rpm-ostree override reset docker cockpit-docker
    container-selinux docker-common
    Checking out tree 7eea73a... done
    Resolving dependencies... failed
    error: The following base packages would be removed:
    container-selinux-2:2.61-1.git9b55129.fc28.noarch,
    docker-2:1.13.1-56.git6c336e4.fc28.x86_64
    -------------------

    How can i do properly and best practice?


---------------------------------------------
EDIT: dnf remove does not work, neither rpm-ostree unisntall.

# rpm-ostree uninstall docker-ce
error: Package/capability 'docker-ce' is not currently requested
  # dnf remove docker-ce
.....
Failed to obtain the transaction lock (logged in as: root).
Error: Could not run transaction
-----------------------------------

A few of us helped solve this problem via IRC and I just wanted to share the results.

There's an issue where the 'rpm-ostree uninstall' command does not support specifying package names for packages that were installed from a local RPM. You need to specify the full NEVRA.

To uninstall the `docker-ce` and `docker-ce-selinux` packages from the example above, we needed to run:

# rpm-ostree uninstall docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch docker-ce-17.03.2.ce-1.el7.centos.x86_64

This problem spawned the following issue and a PR for documentation improvement:

https://github.com/projectatomic/rpm-ostree/issues/1386
https://github.com/projectatomic/rpm-ostree/pull/1388

After the local packages were successfully uninstalled, we were able to reset all of the overrides with:

# rpm-ostree override reset --all

The overall issues faced here also started the discussion about providing a way to uninstall and reset all the overrides in one command:

https://github.com/projectatomic/rpm-ostree/issues/1387




    Thank you

    [0]https://dustymabe.com/2017/09/02/atomic-host-101-lab-part-4-package-layering-experimental-features/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]