How To Install cockpit-bridge on CentOS 8

cockpit-bridge is Cockpit bridge server-side component

Introduction

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

What is cockpit-bridge

The Cockpit bridge component installed server side and runs commands on the system on behalf of the web based user interface.

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

Install cockpit-bridge 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-bridge using dnf by running the following command:

sudo dnf -y install cockpit-bridge

Install cockpit-bridge 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-bridge using yum by running the following command:

sudo yum -y install cockpit-bridge

How To Uninstall cockpit-bridge on CentOS 8

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

sudo dnf remove cockpit-bridge

cockpit-bridge Package Contents on CentOS 8

/etc/cockpit/machines.d
/usr/bin/cockpit-bridge
/usr/lib/.build-id
/usr/lib/.build-id/11
/usr/lib/.build-id/11/667425686adaac7dba3cfbc3895d624847d499
/usr/lib/.build-id/79
/usr/lib/.build-id/79/f7dd1006a214e1b3314d271834e60546e17b17
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/53837290651162e108a92301826aa8c33eed69
/usr/libexec/cockpit-askpass
/usr/libexec/cockpit-ssh
/usr/share/cockpit/base1
/usr/share/cockpit/base1/cockpit.css.gz
/usr/share/cockpit/base1/cockpit.js.gz
/usr/share/cockpit/base1/fonts
/usr/share/cockpit/base1/fonts/fontawesome.woff
/usr/share/cockpit/base1/fonts/glyphicons.woff
/usr/share/cockpit/base1/fonts/patternfly.woff
/usr/share/cockpit/base1/manifest.json
/usr/share/cockpit/base1/patternfly.css.gz
/usr/share/cockpit/base1/po.cs.js.gz
/usr/share/cockpit/base1/po.de.js.gz
/usr/share/cockpit/base1/po.es.js.gz
/usr/share/cockpit/base1/po.fi.js.gz
/usr/share/cockpit/base1/po.fr.js.gz
/usr/share/cockpit/base1/po.he.js.gz
/usr/share/cockpit/base1/po.it.js.gz
/usr/share/cockpit/base1/po.ja.js.gz
/usr/share/cockpit/base1/po.ko.js.gz
/usr/share/cockpit/base1/po.nl.js.gz
/usr/share/cockpit/base1/po.pl.js.gz
/usr/share/cockpit/base1/po.pt_BR.js.gz
/usr/share/cockpit/base1/po.ru.js.gz
/usr/share/cockpit/base1/po.sk.js.gz
/usr/share/cockpit/base1/po.sv.js.gz
/usr/share/cockpit/base1/po.tr.js.gz
/usr/share/cockpit/base1/po.uk.js.gz
/usr/share/cockpit/base1/po.zh_CN.js.gz
/usr/share/cockpit/base1/po.zh_TW.js.gz
/usr/share/cockpit/ssh
/usr/share/cockpit/ssh/manifest.json
/usr/share/man/man1/cockpit-bridge.1.gz
/usr/share/polkit-1/actions/org.cockpit-project.cockpit-bridge.policy

References

Summary

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