How To Install golang-github-prometheus on Rocky Linux 8

In this tutorial we learn how to install golang-github-prometheus on Rocky Linux 8. golang-github-prometheus is Prometheus monitoring system and time series database

Introduction

In this tutorial we learn how to install golang-github-prometheus on Rocky Linux 8.

What is golang-github-prometheus

The Prometheus monitoring system and time series database.

We can use yum or dnf to install golang-github-prometheus on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-prometheus.

Install golang-github-prometheus on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install golang-github-prometheus using dnf by running the following command:

sudo dnf -y install golang-github-prometheus

Install golang-github-prometheus on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install golang-github-prometheus using yum by running the following command:

sudo yum -y install golang-github-prometheus

How To Uninstall golang-github-prometheus on Rocky Linux 8

To uninstall only the golang-github-prometheus package we can use the following command:

sudo dnf remove golang-github-prometheus

golang-github-prometheus Package Contents on Rocky Linux 8

/etc/logrotate.d/prometheus
/etc/prometheus
/etc/prometheus/console_libraries
/etc/prometheus/consoles
/etc/prometheus/prometheus.yml
/etc/sysconfig/prometheus
/usr/bin/prometheus
/usr/bin/promtool
/usr/lib/.build-id
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/6a2ec242276fb5c03fba4eafe5a00e73743cd3
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/e0093ab8042507d918766632af617eb071833d
/usr/lib/systemd/system/prometheus.service
/usr/lib/sysusers.d/prometheus.conf
/usr/share/doc/golang-github-prometheus
/usr/share/doc/golang-github-prometheus/CHANGELOG.md
/usr/share/doc/golang-github-prometheus/CODE_OF_CONDUCT.md
/usr/share/doc/golang-github-prometheus/CONTRIBUTING.md
/usr/share/doc/golang-github-prometheus/MAINTAINERS.md
/usr/share/doc/golang-github-prometheus/README.md
/usr/share/doc/golang-github-prometheus/RELEASE.md
/usr/share/doc/golang-github-prometheus/docs
/usr/share/doc/golang-github-prometheus/docs/configuration
/usr/share/doc/golang-github-prometheus/docs/configuration/alerting_rules.md
/usr/share/doc/golang-github-prometheus/docs/configuration/configuration.md
/usr/share/doc/golang-github-prometheus/docs/configuration/https.md
/usr/share/doc/golang-github-prometheus/docs/configuration/index.md
/usr/share/doc/golang-github-prometheus/docs/configuration/recording_rules.md
/usr/share/doc/golang-github-prometheus/docs/configuration/template_examples.md
/usr/share/doc/golang-github-prometheus/docs/configuration/template_reference.md
/usr/share/doc/golang-github-prometheus/docs/configuration/unit_testing_rules.md
/usr/share/doc/golang-github-prometheus/docs/federation.md
/usr/share/doc/golang-github-prometheus/docs/getting_started.md
/usr/share/doc/golang-github-prometheus/docs/images
/usr/share/doc/golang-github-prometheus/docs/images/remote_integrations.png
/usr/share/doc/golang-github-prometheus/docs/index.md
/usr/share/doc/golang-github-prometheus/docs/installation.md
/usr/share/doc/golang-github-prometheus/docs/management_api.md
/usr/share/doc/golang-github-prometheus/docs/migration.md
/usr/share/doc/golang-github-prometheus/docs/querying
/usr/share/doc/golang-github-prometheus/docs/querying/api.md
/usr/share/doc/golang-github-prometheus/docs/querying/basics.md
/usr/share/doc/golang-github-prometheus/docs/querying/examples.md
/usr/share/doc/golang-github-prometheus/docs/querying/functions.md
/usr/share/doc/golang-github-prometheus/docs/querying/index.md
/usr/share/doc/golang-github-prometheus/docs/querying/operators.md
/usr/share/doc/golang-github-prometheus/docs/stability.md
/usr/share/doc/golang-github-prometheus/docs/storage.md
/usr/share/doc/golang-github-prometheus/documentation
/usr/share/doc/golang-github-prometheus/documentation/examples
/usr/share/doc/golang-github-prometheus/documentation/examples/custom-sd
/usr/share/doc/golang-github-prometheus/documentation/examples/custom-sd/README.md
/usr/share/doc/golang-github-prometheus/documentation/examples/custom-sd/adapter
/usr/share/doc/golang-github-prometheus/documentation/examples/custom-sd/adapter-usage
/usr/share/doc/golang-github-prometheus/documentation/examples/custom-sd/adapter-usage/main.go
/usr/share/doc/golang-github-prometheus/documentation/examples/custom-sd/adapter/adapter.go
/usr/share/doc/golang-github-prometheus/documentation/examples/custom-sd/adapter/adapter_test.go
/usr/share/doc/golang-github-prometheus/documentation/examples/kubernetes-rabbitmq
/usr/share/doc/golang-github-prometheus/documentation/examples/kubernetes-rabbitmq/README.md
/usr/share/doc/golang-github-prometheus/documentation/examples/kubernetes-rabbitmq/rc.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/kubernetes-rabbitmq/svc.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/prometheus-digitalocean.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/prometheus-dockerswarm.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/prometheus-eureka.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/prometheus-hetzner.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/prometheus-kubernetes.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/prometheus-marathon.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/prometheus.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/rbac-setup.yml
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/example_write_adapter
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/example_write_adapter/README.md
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/example_write_adapter/server.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/README.md
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/graphite
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/graphite/client.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/graphite/client_test.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/graphite/escape.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/influxdb
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/influxdb/client.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/influxdb/client_test.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/main.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/opentsdb
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/opentsdb/client.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/opentsdb/client_test.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/opentsdb/tagvalue.go
/usr/share/doc/golang-github-prometheus/documentation/examples/remote_storage/remote_storage_adapter/opentsdb/tagvalue_test.go
/usr/share/doc/golang-github-prometheus/documentation/images
/usr/share/doc/golang-github-prometheus/documentation/images/architecture.svg
/usr/share/doc/golang-github-prometheus/documentation/images/architecture.xml
/usr/share/doc/golang-github-prometheus/documentation/images/diagram_note.md
/usr/share/doc/golang-github-prometheus/documentation/images/internal_architecture.svg
/usr/share/doc/golang-github-prometheus/documentation/images/internal_architecture.xml
/usr/share/doc/golang-github-prometheus/documentation/internal_architecture.md
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/.gitignore
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/Makefile
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/README.md
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/alerts.jsonnet
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/alerts.libsonnet
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/config.libsonnet
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/dashboards.jsonnet
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/dashboards.libsonnet
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/go.mod
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/go.sum
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/jsonnetfile.json
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/mixin.libsonnet
/usr/share/doc/golang-github-prometheus/documentation/prometheus-mixin/tools.go
/usr/share/licenses/golang-github-prometheus
/usr/share/licenses/golang-github-prometheus/LICENSE
/usr/share/licenses/golang-github-prometheus/NOTICE
/var/lib/prometheus

References

Summary

In this tutorial we learn how to install golang-github-prometheus on Rocky Linux 8 using yum and dnf.