Tag Archives: Command Line

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 »

Using a Proxy With Curl

By | 2020-11-21

Using a proxy with Curl is straightforward and flexible. There are a few methods you can use. You can specify the proxy URL on the command line, or set the appropriate environment variable. Using -x This is the most straightforward way to use a proxy server with curl. Using the -x option guarantees that you… Read More »

Following Redirects With Curl

By | 2020-11-12

The curl command is a great tool with a lot of uses. When used for HTTP, it doesn’t follow redirects. However, following redirects with curl is easy. If you are in a hurry, the short answer is the -L option: $ curl http://tylersguides.com > tylersguides.html % Total % Received % Xferd Average Speed Time Time… Read More »