Tag Archives: Linux

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 »

Linux For Loop

By | 2023-10-14

I chose this topic because SEO tools found it is a common search topic. The answer you need is there are multiple variants of Linux for loops. The technically correct answer is there isn’t such a thing, as Linux is just a kernel. The answer you want is how to use a Linux for loop.… Read More »

Remove an LVM Disk

By | 2021-11-21

There may be occasions where you need to remove an LVM disk. Maybe the host is a VM and you need space on the hypervisor? Perhaps the device is a fiber channel SAN target that you no longer need? No matter the reason, it isn’t terribly difficult to remove an LVM disk. There are three… Read More »

How to Undo a Yum Update

By | 2021-10-16

While uncommon, sometimes a package update can cause problems. Distributions that use yum or dnf track package changes with a transaction log. You can undo a yum update by undoing the relevant transaction(s). In order for this to work, the previous versions of any packages in the transaction must exist in the repositories. The process… 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 »

Linux – How to Tell Which Shell

By | 2020-09-23

The easiest way to tell which shell you are using is by looking at what the exe link points to in your shell process’s /proc directory. You can use the command ls -l /proc/$$/exe. Below is an example: $ ls -l /proc/$$/exe lrwxrwxrwx 1 tyler tyler 0 Sep 22 19:39 /proc/19867/exe -> /bin/bash The special… Read More »