Tag Archives: CentOS

How to Determine Which Package Provides a File – DNF

By | 2023-11-04

There will be times when you will be wanting a particular program, header, or library, but aren’t sure which package it is in. Instead of trying to search the repositories for packages by name and description with dnf search, you can use dnf provides to search the repository for packages that provide a particular file.… Read More »

Using a Proxy With DNF

By | 2020-11-27

Using a proxy with DNF is straightforward. You can edit /etc/dnf/dnf.conf, set the relevant environment variable, or use the shell sub command. DNF supports both HTTP and SOCKS proxies and several authentication methods. Keep in mind a few things when caching package repositories: Package repositories running on HTTPS cannot be cached without something like Squid’s… Read More »

Listing Files In a Package With DNF

By | 2020-01-04

Listing files in a package with dnf is easy. Just follow the example below: # dnf repoquery -l crontabs Last metadata expiration check: 0:12:18 ago on Sat 04 Jan 2020 09:40:27 AM EST. /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/crontab /etc/sysconfig/run-parts /usr/bin/run-parts /usr/share/licenses/crontabs /usr/share/licenses/crontabs/COPYING /usr/share/man/man4/crontabs.4.gz /usr/share/man/man4/run-parts.4.gz Replace crontabs with the name of the package you wish to… Read More »

Install MATE on CentOS 8

By | 2020-01-01

UPDATE 2023 April 12: I was going to build RPMs to post here, but found that MATE packages are available in EPEL. Follow the instructions here for setting up the EPEL repositories. I am going to leave the instructions up to assist package maintainers and for anyone interested in the process of building a major… Read More »

Installing Tomcat on CentOS 8

By | 2019-11-24

I couldn’t find a Tomcat package in the standard repositories or EPEL, so I will walk you through installing Tomcat on CentOS 8. It is a relatively straightforward process. The latest version available at the time of writing (2019 November 23) is 9.0.29, so that is the version I will use in the examples. All… Read More »

Installing HAProxy From Source on CentOS 8

By | 2019-11-21

The CentOS 8 repositories provide HAProxy version 1.8.15. You may want or need features in newer versions. Fortunately, installing HAProxy 2.0.9 (Latest stable version as of 2019 November, 21) from source is relatively straightforward. The steps to do so are: Install required packages Download the HAProxy source code Compile and install HAProxy Create an unprivileged… Read More »

Listing Installed Packages With DNF

By | 2019-10-21

Listing installed packages with dnf is straightforward. Unlike rpm, dnf also shows you the repository packages were installed from. The following example demonstrates listing all packages installed on a system. # dnf list installed Installed Packages acl.x86_64 2.2.53-1.el8 @anaconda audit.x86_64 3.0-0.10.20180831git0047a6c.el8 @anaconda audit-libs.x86_64 3.0-0.10.20180831git0047a6c.el8 @anaconda The left column displays the name of the package along… Read More »