How to Install and Uninstall prometheus Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: November 26,2024

1. Install "prometheus" package

This tutorial shows how to install prometheus on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install prometheus

2. Uninstall "prometheus" package

This tutorial shows how to uninstall prometheus on Ubuntu 22.04 LTS (Jammy Jellyfish):

$ sudo apt remove prometheus $ sudo apt autoclean && sudo apt autoremove

3. Information about the prometheus package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: prometheus
Architecture: amd64
Version: 2.31.2+ds1-1ubuntu1.22.04.2
Built-Using: consul (= 1.8.7+dfsg1-3), docker.io (= 20.10.21-0ubuntu1~22.04.3), golang-1.18 (= 1.18.1-1ubuntu1.1), golang-fsnotify (= 1.5.1-1), golang-github-alecthomas-units (= 0.0~git20211218.b94a6e3-1), golang-github-armon-go-metrics (= 0.3.4-1), golang-github-asaskevich-govalidator (= 9+git20180720.0.f9ffefc3-1.1), golang-github-aws-aws-sdk-go (= 1.41.14-1ubuntu1), golang-github-azure-azure-sdk-for-go (= 43.3.0-1), golang-github-azure-go-autorest (= 14.1.1-1), golang-github-beorn7-perks (= 1.0.1-1), golang-github-cespare-xxhash (= 2.1.1-2), golang-github-davecgh-go-spew (= 1.1.1-2), golang-github-dennwc-varint (= 1.0.0-2), golang-github-dgrijalva-jwt-go (= 3.2.0-3), golang-github-digitalocean-godo (= 1.37.0-1), golang-github-edsrzf-mmap-go (= 0.0~git20170320.0.0bce6a6-6), golang-github-fatih-color (= 1.7.0-1), golang-github-go-kit-log (= 0.2.0-3), golang-github-go-logfmt-logfmt (= 0.5.0-2), golang-github-go-openapi-analysis (= 0.21.1-2), golang-github-go-openapi-errors (= 0.20.1-3), golang-github-go-openapi-jsonpointer (= 1:0.19.5-3), golang-github-go-openapi-jsonreference (= 1:0.19.6-2), golang-github-go-openapi-loads (= 0.21.0-1), golang-github-go-openapi-runtime (= 0.21.0-1), golang-github-go-openapi-spec (= 1:0.20.4-1), golang-github-go-openapi-strfmt (= 0.19.0-1), golang-github-go-openapi-swag (= 1:0.19.15-1), golang-github-go-openapi-validate (= 0.20.3-2), golang-github-golang-groupcache (= 0.0~git20200121.8c9f03a-1), golang-github-golang-snappy (= 0.0.2-2), golang-github-google-go-querystring (= 1.1.0-1), golang-github-google-pprof (= 0.0~git20211008.947d60d-1), golang-github-googleapis-gax-go (= 2.0.5-3), golang-github-gophercloud-gophercloud (= 0.12.0-1), golang-github-hashicorp-go-cleanhttp (= 0.5.2-1), golang-github-hashicorp-go-hclog (= 0.11.0-1), golang-github-hashicorp-go-immutable-radix (= 1.3.1-1), golang-github-hashicorp-go-rootcerts (= 1.0.2-2), golang-github-hashicorp-golang-lru (= 0.5.4-2), golang-github-hashicorp-serf (= 0.9.4~ds1-1), golang-github-hetznercloud-hcloud-go (= 1.33.1-1), golang-github-jmespath-go-jmespath (= 0.4.0-2), golang-github-josharian-intern (= 1.0.0-3), golang-github-jpillora-backoff (= 1.0.0-1.1), golang-github-json-iterator-go (= 1.1.10-2), golang-github-julienschmidt-httprouter (= 1.3.0-1), golang-github-mailru-easyjson (= 0.7.6-2), golang-github-mattn-go-colorable (= 0.1.12-1), golang-github-mattn-go-isatty (= 0.0.14-1), golang-github-miekg-dns (= 1.1.43-1), golang-github-mitchellh-mapstructure (= 1.4.3-1), golang-github-modern-go-concurrent (= 1.0.3-1.1), golang-github-modern-go-reflect2 (= 1.0.2-1), golang-github-mwitkow-go-conntrack (= 0.0~git20190716.2f06839-2), golang-github-oklog-run (= 1.1.0-1), golang-github-oklog-ulid (= 2.0.2+ds-2), golang-github-opennota-urlesc (= 0.0~git20160726.0.5bd2802-1.1), golang-github-opentracing-contrib-go-stdlib (= 1.0.0-1), golang-github-opentracing-opentracing-go (= 1.2.0-1), golang-github-pkg-errors (= 0.9.1-2), golang-github-pmezard-go-difflib (= 1.0.0-3), golang-github-prometheus-client-golang (= 1.11.0-3), golang-github-prometheus-client-model (= 0.2.0-3), golang-github-prometheus-common (= 0.32.1-5ubuntu1), golang-github-prometheus-exporter-toolkit (= 0.7.1-1ubuntu1), golang-github-prometheus-procfs (= 0.7.3-1), golang-github-puerkitobio-purell (= 1.1.1-1), golang-github-samuel-go-zookeeper (= 0.0~git20180130.c4fab1a-1), golang-go.crypto (= 1:0.0~git20211202.5770296-1), golang-go.opencensus (= 0.23.0-2), golang-go.uber-atomic (= 1.7.0-1), golang-gogoprotobuf (= 1.3.2-1), golang-golang-x-net (= 1:0.0+git20211209.491a49a+dfsg-1), golang-golang-x-oauth2 (= 0.0~git20211104.d3ed0bb-1), golang-golang-x-sync (= 0.0~git20210220.036812b-1), golang-golang-x-sys (= 0.0~git20211216.1d35b9e-1), golang-golang-x-text (= 0.3.7-1ubuntu0.20.04.1), golang-golang-x-time (= 0.0+git20211116.f0f3c7e-1), golang-google-api (= 0.61.0-1), golang-google-cloud (= 0.56.0-1), golang-google-genproto (= 0.0~git20200413.b5235f6-1), golang-google-grpc (= 1.29.1-0ubuntu1), golang-gopkg-alecthomas-kingpin.v2 (= 2.2.6-3), golang-gopkg-mgo.v2 (= 2016.08.01-7), golang-gopkg-yaml.v3 (= 3.0.0~git20210107.496545a-1), golang-goprotobuf (= 1.3.4-2ubuntu0.22.04.1), golang-protobuf-extensions (= 1.0.1-1), golang-testify (= 1.7.0+git20210824.ab6dc32-1), golang-uber-goleak (= 1.1.12-1), golang-yaml.v2 (= 2.4.0-2), prometheus-alertmanager (= 0.23.0-4ubuntu0.1)
Priority: extra
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 80868
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: adduser, fonts-glyphicons-halflings, libjs-bootstrap4, libjs-eonasdan-bootstrap-datetimepicker, libjs-jquery (>= 3.5.1~), libjs-jquery-hotkeys, libjs-moment, libjs-moment-timezone, libjs-mustache (>= 2.3.0-1~), libjs-popper.js, libjs-rickshaw, libc6 (>= 2.34)
Recommends: prometheus-node-exporter
Filename: pool/universe/p/prometheus/prometheus_2.31.2+ds1-1ubuntu1.22.04.2_amd64.deb
Size: 18284792
MD5sum: bdf933cc25c7319046f672cb7db62e77
SHA1: abb6e9a341d59a38b489d49765d36d2c22505efd
SHA256: d7ace0716ead1ca8f4476773d9d59b099f6bbb337b310c9f13d3fa7bdfbc40d0
SHA512: fc1831c18a29beb3a3dbf5982bdf54d016b696c42702c118567877b91ec264d7550cb8d29ebcabbf4edd2d15e5d33078b89b43c67152518bef8dec4f5d7c7b70
Homepage: https://prometheus.io/
Description: monitoring system and time series database
Description-md5: ed8e3840401470b3bc3fb55243535f98

Package: prometheus
Architecture: amd64
Version: 2.31.2+ds1-1ubuntu1
Built-Using: consul (= 1.8.7+dfsg1-3), docker.io (= 20.10.12-0ubuntu4), golang-1.17 (= 1.17.3-1ubuntu1), golang-fsnotify (= 1.5.1-1), golang-github-alecthomas-units (= 0.0~git20211218.b94a6e3-1), golang-github-armon-go-metrics (= 0.3.4-1), golang-github-asaskevich-govalidator (= 9+git20180720.0.f9ffefc3-1.1), golang-github-aws-aws-sdk-go (= 1.41.14-1), golang-github-azure-azure-sdk-for-go (= 43.3.0-1), golang-github-azure-go-autorest (= 14.1.1-1), golang-github-beorn7-perks (= 1.0.1-1), golang-github-cespare-xxhash (= 2.1.1-2), golang-github-davecgh-go-spew (= 1.1.1-2), golang-github-dennwc-varint (= 1.0.0-2), golang-github-dgrijalva-jwt-go (= 3.2.0-3), golang-github-digitalocean-godo (= 1.37.0-1), golang-github-edsrzf-mmap-go (= 0.0~git20170320.0.0bce6a6-6), golang-github-fatih-color (= 1.7.0-1), golang-github-go-kit-log (= 0.2.0-3), golang-github-go-logfmt-logfmt (= 0.5.0-2), golang-github-go-openapi-analysis (= 0.21.1-2), golang-github-go-openapi-errors (= 0.20.1-3), golang-github-go-openapi-jsonpointer (= 1:0.19.5-3), golang-github-go-openapi-jsonreference (= 1:0.19.6-2), golang-github-go-openapi-loads (= 0.21.0-1), golang-github-go-openapi-runtime (= 0.21.0-1), golang-github-go-openapi-spec (= 1:0.20.4-1), golang-github-go-openapi-strfmt (= 0.19.0-1), golang-github-go-openapi-swag (= 1:0.19.15-1), golang-github-go-openapi-validate (= 0.20.3-2), golang-github-golang-groupcache (= 0.0~git20200121.8c9f03a-1), golang-github-golang-snappy (= 0.0.2-2), golang-github-google-go-querystring (= 1.1.0-1), golang-github-google-pprof (= 0.0~git20211008.947d60d-1), golang-github-googleapis-gax-go (= 2.0.5-3), golang-github-gophercloud-gophercloud (= 0.12.0-1), golang-github-hashicorp-go-cleanhttp (= 0.5.2-1), golang-github-hashicorp-go-hclog (= 0.11.0-1), golang-github-hashicorp-go-immutable-radix (= 1.3.1-1), golang-github-hashicorp-go-rootcerts (= 1.0.2-2), golang-github-hashicorp-golang-lru (= 0.5.4-2), golang-github-hashicorp-serf (= 0.9.4~ds1-1), golang-github-hetznercloud-hcloud-go (= 1.33.1-1), golang-github-jmespath-go-jmespath (= 0.4.0-2), golang-github-josharian-intern (= 1.0.0-3), golang-github-jpillora-backoff (= 1.0.0-1.1), golang-github-json-iterator-go (= 1.1.10-2), golang-github-julienschmidt-httprouter (= 1.3.0-1), golang-github-mailru-easyjson (= 0.7.6-2), golang-github-mattn-go-colorable (= 0.1.12-1), golang-github-mattn-go-isatty (= 0.0.14-1), golang-github-miekg-dns (= 1.1.43-1), golang-github-mitchellh-mapstructure (= 1.4.3-1), golang-github-modern-go-concurrent (= 1.0.3-1.1), golang-github-modern-go-reflect2 (= 1.0.2-1), golang-github-mwitkow-go-conntrack (= 0.0~git20190716.2f06839-2), golang-github-oklog-run (= 1.1.0-1), golang-github-oklog-ulid (= 2.0.2+ds-2), golang-github-opennota-urlesc (= 0.0~git20160726.0.5bd2802-1.1), golang-github-opentracing-contrib-go-stdlib (= 1.0.0-1), golang-github-opentracing-opentracing-go (= 1.2.0-1), golang-github-pkg-errors (= 0.9.1-2), golang-github-pmezard-go-difflib (= 1.0.0-3), golang-github-prometheus-client-golang (= 1.11.0-3), golang-github-prometheus-client-model (= 0.2.0-3), golang-github-prometheus-common (= 0.32.1-5), golang-github-prometheus-exporter-toolkit (= 0.7.1-1), golang-github-prometheus-procfs (= 0.7.3-1), golang-github-puerkitobio-purell (= 1.1.1-1), golang-github-samuel-go-zookeeper (= 0.0~git20180130.c4fab1a-1), golang-go.crypto (= 1:0.0~git20211202.5770296-1), golang-go.opencensus (= 0.23.0-2), golang-go.uber-atomic (= 1.7.0-1), golang-gogoprotobuf (= 1.3.2-1), golang-golang-x-net (= 1:0.0+git20211209.491a49a+dfsg-1), golang-golang-x-oauth2 (= 0.0~git20211104.d3ed0bb-1), golang-golang-x-sync (= 0.0~git20210220.036812b-1), golang-golang-x-sys (= 0.0~git20211216.1d35b9e-1), golang-golang-x-text (= 0.3.7-1), golang-golang-x-time (= 0.0+git20211116.f0f3c7e-1), golang-google-api (= 0.61.0-1), golang-google-cloud (= 0.56.0-1), golang-google-genproto (= 0.0~git20200413.b5235f6-1), golang-google-grpc (= 1.29.1-0ubuntu1), golang-gopkg-alecthomas-kingpin.v2 (= 2.2.6-3), golang-gopkg-mgo.v2 (= 2016.08.01-7), golang-gopkg-yaml.v3 (= 3.0.0~git20210107.496545a-1), golang-goprotobuf (= 1.3.4-2), golang-protobuf-extensions (= 1.0.1-1), golang-testify (= 1.7.0+git20210824.ab6dc32-1), golang-uber-goleak (= 1.1.12-1), golang-yaml.v2 (= 2.4.0-2), prometheus-alertmanager (= 0.23.0-4)
Priority: extra
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 84158
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: adduser, fonts-glyphicons-halflings, libjs-bootstrap4, libjs-eonasdan-bootstrap-datetimepicker, libjs-jquery (>= 3.5.1~), libjs-jquery-hotkeys, libjs-moment, libjs-moment-timezone, libjs-mustache (>= 2.3.0-1~), libjs-popper.js, libjs-rickshaw, libc6 (>= 2.34)
Recommends: prometheus-node-exporter
Filename: pool/universe/p/prometheus/prometheus_2.31.2+ds1-1ubuntu1_amd64.deb
Size: 17886142
MD5sum: cc51299472eec385b1dcea64cd7cae81
SHA1: 69483a3f8c02fb349fca62a7a0866d26292bbd69
SHA256: 1e94547209f311425c9cc59ff092d0a14aa329b28d9d523afed04e0907da897e
SHA512: fe05905d71b5105e0bf096d17c6b65fea9fb2cb3cb56593251783533cfa2b52eb0517d7756ba9475733d01b78aab90abcb3a3681b82536b97cca76d5a7f0285d
Homepage: https://prometheus.io/
Description: monitoring system and time series database
Description-md5: ed8e3840401470b3bc3fb55243535f98