How To Install cockpit-ws on CentOS 8

cockpit-ws is Cockpit Web Service

Introduction

In this tutorial we learn how to install cockpit-ws on CentOS 8.

What is cockpit-ws

The Cockpit Web Service listens on the network, and authenticates users. If sssd-dbus is installed, you can enable client certificate/smart card authentication via sssd/FreeIPA.

We can use yum or dnf to install cockpit-ws on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install cockpit-ws.

Install cockpit-ws on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install cockpit-ws using dnf by running the following command:

sudo dnf -y install cockpit-ws

Install cockpit-ws on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install cockpit-ws using yum by running the following command:

sudo yum -y install cockpit-ws

How To Uninstall cockpit-ws on CentOS 8

To uninstall only the cockpit-ws package we can use the following command:

sudo dnf remove cockpit-ws

cockpit-ws Package Contents on CentOS 8

/etc/cockpit
/etc/cockpit/ws-certs.d
/etc/issue.d/cockpit.issue
/etc/motd.d/cockpit
/etc/pam.d/cockpit
/run/cockpit
/run/cockpit/motd
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/7868fcdc6c09f2cee245fbbed41246bf441bcf
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/aa182ec59ed587cb004e44dc7385b1b2197fb0
/usr/lib/.build-id/80
/usr/lib/.build-id/80/0a5c3c4498c504c9d571afb60e14fbd3ee5945
/usr/lib/.build-id/be
/usr/lib/.build-id/be/9fc1c9b6419d9805b265cd137fa543ad2faa74
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/44cd2795800a87e8c8017921dd0245e0c134c8
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/28555b1d39d2e380d78afa352d0115b734ce45
/usr/lib/.build-id/ee/7742bb87715e1954a738e182a3980cb43cdb11
/usr/lib/systemd/system/cockpit-motd.service
/usr/lib/systemd/system/cockpit-wsinstance-http-redirect.service
/usr/lib/systemd/system/cockpit-wsinstance-http-redirect.socket
/usr/lib/systemd/system/cockpit-wsinstance-http.service
/usr/lib/systemd/system/cockpit-wsinstance-http.socket
/usr/lib/systemd/system/cockpit-wsinstance-https-factory.socket
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/cockpit.service
/usr/lib/systemd/system/cockpit.socket
/usr/lib/systemd/system/system-cockpithttps.slice
/usr/lib/tmpfiles.d/cockpit-tempfiles.conf
/usr/lib64/security/pam_cockpit_cert.so
/usr/lib64/security/pam_ssh_add.so
/usr/libexec/cockpit-desktop
/usr/libexec/cockpit-session
/usr/libexec/cockpit-tls
/usr/libexec/cockpit-ws
/usr/libexec/cockpit-wsinstance-factory
/usr/sbin/remotectl
/usr/share/cockpit/branding
/usr/share/cockpit/branding/centos
/usr/share/cockpit/branding/centos/apple-touch-icon.png
/usr/share/cockpit/branding/centos/branding.css
/usr/share/cockpit/branding/centos/favicon.ico
/usr/share/cockpit/branding/centos/logo.png
/usr/share/cockpit/branding/debian
/usr/share/cockpit/branding/debian/branding.css
/usr/share/cockpit/branding/debian/favicon.ico
/usr/share/cockpit/branding/debian/logo.png
/usr/share/cockpit/branding/default
/usr/share/cockpit/branding/default/apple-touch-icon.png
/usr/share/cockpit/branding/default/bg-login.jpg
/usr/share/cockpit/branding/default/bg-plain.jpg
/usr/share/cockpit/branding/default/brand-large.png
/usr/share/cockpit/branding/default/branding.css
/usr/share/cockpit/branding/default/favicon.ico
/usr/share/cockpit/branding/default/logo.png
/usr/share/cockpit/branding/fedora
/usr/share/cockpit/branding/fedora/apple-touch-icon.png
/usr/share/cockpit/branding/fedora/branding.css
/usr/share/cockpit/branding/fedora/favicon.ico
/usr/share/cockpit/branding/fedora/logo.png
/usr/share/cockpit/branding/kubernetes
/usr/share/cockpit/branding/kubernetes/branding.css
/usr/share/cockpit/branding/opensuse
/usr/share/cockpit/branding/opensuse/branding.css
/usr/share/cockpit/branding/opensuse/default-1920x1200.jpg
/usr/share/cockpit/branding/opensuse/favicon.ico
/usr/share/cockpit/branding/opensuse/square-hicolor.svg
/usr/share/cockpit/branding/registry
/usr/share/cockpit/branding/registry/branding.css
/usr/share/cockpit/branding/rhel
/usr/share/cockpit/branding/rhel/apple-touch-icon.png
/usr/share/cockpit/branding/rhel/branding.css
/usr/share/cockpit/branding/rhel/favicon.ico
/usr/share/cockpit/branding/rhel/logo.png
/usr/share/cockpit/branding/scientific
/usr/share/cockpit/branding/scientific/apple-touch-icon.png
/usr/share/cockpit/branding/scientific/branding.css
/usr/share/cockpit/branding/scientific/favicon.ico
/usr/share/cockpit/branding/scientific/logo.png
/usr/share/cockpit/branding/ubuntu
/usr/share/cockpit/branding/ubuntu/branding.css
/usr/share/cockpit/branding/ubuntu/favicon.ico
/usr/share/cockpit/branding/ubuntu/logo.png
/usr/share/cockpit/motd
/usr/share/cockpit/motd/inactive.motd
/usr/share/cockpit/motd/update-motd
/usr/share/cockpit/static
/usr/share/cockpit/static/fonts/OpenSans-Bold-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-BoldItalic-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-ExtraBold-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-ExtraBoldItalic-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-Italic-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-Light-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-LightItalic-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-Regular-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-Semibold-webfont.woff
/usr/share/cockpit/static/fonts/OpenSans-SemiboldItalic-webfont.woff
/usr/share/cockpit/static/fonts/RedHatDisplay-Black.woff2
/usr/share/cockpit/static/fonts/RedHatDisplay-BlackItalic.woff2
/usr/share/cockpit/static/fonts/RedHatDisplay-Bold.woff2
/usr/share/cockpit/static/fonts/RedHatDisplay-BoldItalic.woff2
/usr/share/cockpit/static/fonts/RedHatDisplay-Italic.woff2
/usr/share/cockpit/static/fonts/RedHatDisplay-Medium.woff2
/usr/share/cockpit/static/fonts/RedHatDisplay-MediumItalic.woff2
/usr/share/cockpit/static/fonts/RedHatDisplay-Regular.woff2
/usr/share/cockpit/static/fonts/RedHatText-Bold.woff2
/usr/share/cockpit/static/fonts/RedHatText-BoldItalic.woff2
/usr/share/cockpit/static/fonts/RedHatText-Italic.woff2
/usr/share/cockpit/static/fonts/RedHatText-Medium.woff2
/usr/share/cockpit/static/fonts/RedHatText-MediumItalic.woff2
/usr/share/cockpit/static/fonts/RedHatText-Regular.woff2
/usr/share/cockpit/static/login.css
/usr/share/cockpit/static/login.html
/usr/share/cockpit/static/login.js
/usr/share/cockpit/static/manifest.json
/usr/share/cockpit/static/po.cs.js
/usr/share/cockpit/static/po.de.js
/usr/share/cockpit/static/po.es.js
/usr/share/cockpit/static/po.fi.js
/usr/share/cockpit/static/po.fr.js
/usr/share/cockpit/static/po.he.js
/usr/share/cockpit/static/po.it.js
/usr/share/cockpit/static/po.ja.js
/usr/share/cockpit/static/po.ko.js
/usr/share/cockpit/static/po.nl.js
/usr/share/cockpit/static/po.pl.js
/usr/share/cockpit/static/po.pt_BR.js
/usr/share/cockpit/static/po.ru.js
/usr/share/cockpit/static/po.sk.js
/usr/share/cockpit/static/po.sv.js
/usr/share/cockpit/static/po.tr.js
/usr/share/cockpit/static/po.uk.js
/usr/share/cockpit/static/po.zh_CN.js
/usr/share/cockpit/static/po.zh_TW.js
/usr/share/locale/cs/LC_MESSAGES/cockpit.mo
/usr/share/locale/de/LC_MESSAGES/cockpit.mo
/usr/share/locale/es/LC_MESSAGES/cockpit.mo
/usr/share/locale/fi/LC_MESSAGES/cockpit.mo
/usr/share/locale/fr/LC_MESSAGES/cockpit.mo
/usr/share/locale/he/LC_MESSAGES/cockpit.mo
/usr/share/locale/it/LC_MESSAGES/cockpit.mo
/usr/share/locale/ja/LC_MESSAGES/cockpit.mo
/usr/share/locale/ko/LC_MESSAGES/cockpit.mo
/usr/share/locale/nl/LC_MESSAGES/cockpit.mo
/usr/share/locale/pl/LC_MESSAGES/cockpit.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cockpit.mo
/usr/share/locale/ru/LC_MESSAGES/cockpit.mo
/usr/share/locale/sk/LC_MESSAGES/cockpit.mo
/usr/share/locale/sv/LC_MESSAGES/cockpit.mo
/usr/share/locale/tr/LC_MESSAGES/cockpit.mo
/usr/share/locale/uk/LC_MESSAGES/cockpit.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cockpit.mo
/usr/share/locale/zh_TW/LC_MESSAGES/cockpit.mo
/usr/share/man/man1/cockpit-desktop.1.gz
/usr/share/man/man5/cockpit.conf.5.gz
/usr/share/man/man8/cockpit-tls.8.gz
/usr/share/man/man8/cockpit-ws.8.gz
/usr/share/man/man8/pam_cockpit_cert.8.gz
/usr/share/man/man8/pam_ssh_add.8.gz
/usr/share/man/man8/remotectl.8.gz

References

Summary

In this tutorial we learn how to install cockpit-ws on CentOS 8 using yum and dnf.