Giter Site home page Giter Site logo

Comments (4)

qiaofeng1227 avatar qiaofeng1227 commented on June 7, 2024
Install_PackageKit(){
    echo "$echo_prefix_cockpit Install PackageKit(pkcon) and Cockpit repository"

    if command -v pkcon &> /dev/null; then
        echo "pkcon is at your system ..."

    elif command -v yum &> /dev/null; then
        if [ "$(cat /etc/redhat-release)" = "Redhat7" ]; then
            sudo subscription-manager repos --enable rhel-7-server-extras-rpms
        fi
        sudo yum install PackageKit -y

    elif command -v dnf &> /dev/null; then
        sudo dnf install PackageKit -y

    elif command -v apt &> /dev/null; then
        sudo apt update
        sudo apt install packagekit -y

    else
        echo "PackageKit not found, Cockpit cannot be installed"
        exit 1
    fi
}

Disable_PackageKit(){
    echo "$echo_prefix_cockpit disable PackageKit(pkcon)"

    if command -v pkcon &> /dev/null; then
        echo "pkcon is at your system ..."
        sudo  systemctl stop packagekit
        sudo  systemctl disable packagekit
 
    fi
}

from websoft9.

chendelin1982 avatar chendelin1982 commented on June 7, 2024
systemctl disable packagekit
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled or disabled using systemctl.
 
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.

from websoft9.

chendelin1982 avatar chendelin1982 commented on June 7, 2024
$ systemctl cat  packagekit
# /usr/lib/systemd/system/packagekit.service
[Unit]
Description=PackageKit Daemon
# PK doesn't know how to do anything on ostree-managed systems;
# currently the design is to have dedicated daemons like
# eos-updater and rpm-ostree, and gnome-software talks to those.
ConditionPathExists=!/run/ostree-booted

[Service]
Type=dbus
BusName=org.freedesktop.PackageKit
User=root
ExecStart=/usr/libexec/packagekitd

from websoft9.

qiaofeng1227 avatar qiaofeng1227 commented on June 7, 2024
sudo systemctl mask packagekit
[root@iZj6c0jy2125g4pwih13f9Z ~]# systemctl status packagekit
○ packagekit.service
     Loaded: masked (Reason: Unit packagekit.service is masked.)
     Active: inactive (dead)

from websoft9.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.