Linux Bash

Providing immersive and explanatory content in a simple way anybody can understand.

  • Posted on
    Featured Image
    In the realm of Linux, mastering file permissions is crucial for managing the security and accessibility of files and directories. Linux file permissions govern who can read, write, or execute files. In this blog post, we’re going to explore how these permissions work and how you can change them using different commands. Additionally, I’ll provide guidance on updating your system with different package managers including apt, dnf, and zypper, to ensure you have the latest tools needed for managing permissions. Linux file permissions for a file or directory are typically depicted in a 10-character string. For example, a permission might look like -rwxr-xr--. Each character represents a different permission setting.
  • Posted on
    Featured Image
    When managing packages on any Linux distribution, repositories are a crucial component. They are online sources from which packages are installed or updated. Occasionally, you may find the need to disable specific repositories temporarily. This might be necessary to troubleshoot conflicts, test software versions, or optimise system performance. Here, we'll explore how to temporarily disable repositories on various package managers, including apt (used by Ubuntu and other Debian-based distributions), dnf (used by Fedora and RHEL-based distributions), and zypper (used by openSUSE and SUSE Linux Enterprise). 1. Using apt on Debian-based Distros In Debian-based systems like Ubuntu, repositories are managed in the /etc/apt/sources.
  • Posted on
    Featured Image
    When you begin your journey into the Linux environment, understanding the fundamentals of Bash (the Bourne Again SHell) is essential. Bash is the most common shell used in Linux systems and is powerful in managing files, directories, and software packages. This article will introduce you to basic Bash commands for navigating directories, managing files, and handling different package managers such as apt, dnf, and zypper. pwd (Print Working Directory) To find out where you are in the filesystem, use the pwd command. $ pwd cd (Change Directory) To change your current directory, use the cd command followed by the path to the desired directory.
  • Posted on
    Featured Image
    Red Hat Enterprise Linux 8 introduced a new concept in package management and software distribution called "Application Stream" or AppStream for short. This method enables users to have more flexibility in terms of software versions they install and manage on their systems. Although it originated with RHEL, understanding AppStream is also essential for users of other Linux distributions, especially those based on RHEL like CentOS and Fedora. In this blog post, we will explore how to use AppStream effectively on RHEL-based systems and discuss how to handle similar functionalities in systems using other package managers like apt (Debian/Ubuntu) and zypper (openSUSE).
  • Posted on
    Featured Image
    Welcome to the world of Linux! If you’re setting up your Linux environment for the first time, you're on the brink of discovering a powerful, versatile operating system renowned for its stability and flexibility in programming, administration, and day-to-day use. This guide is here to walk you through the initial setup process, focusing on the Bash shell—the default command-line interface for many Linux distributions—and how to use different package managers, including apt, dnf, and zypper. The first thing you need to do is choose a Linux distribution. Some popular options for beginners and veterans alike include Ubuntu, Fedora, and openSUSE.
  • Posted on
    Featured Image
    Red Hat Enterprise Linux (RHEL) 8 introduced a groundbreaking approach to package management and software delivery by integrating the concept of "modularity." This concept allows users to have multiple versions of a software application available in the repository, providing greater flexibility and control over versioning and updates. As modular content becomes increasingly central in RHEL environments, understanding how to manage these modules efficiently is crucial. In this blog post, we'll explore how to manage modular content in RHEL 8+, and we'll also provide instructions for different package managers including dnf, as well as a brief look at apt and zypper, which are used in Ubuntu/Debian and SUSE Linux environments, respectively.
  • Posted on
    Featured Image
    For anyone entering the realm of Linux, the Bash shell is an indispensable tool, acting as a gateway to managing your system, automating tasks, and a whole lot more. Today, we’ll walk through the basics of the Bash shell, commonly used Linux commands, and illustrate how to use different package managers like apt, dnf, and zypper. By the end of this article, you should have a solid foundation to confidently navigate and control your Linux environment. Bash, short for Bourne-Again SHell, is a command processor typically run in a text window where the user types commands that cause actions. Bash can also read and execute commands from a file, known as a script.
  • Posted on
    Featured Image
    Creating RPM packages from source codes not only gives Linux users more control over their systems by enabling them to tailor applications to their specific needs but also helps in understanding the packaging process which is vital for distributing software efficiently. RPM, originally developed for Red Hat Linux, is adopted by many Linux distributions including Fedora, CentOS, and openSUSE. In this blog, we'll dive into the process of building RPM packages from source and tackle how to operate this process across different package managers like yum (or dnf), apt, and zypper. RPM stands for Red Hat Package Manager.
  • Posted on
    Featured Image
    In the world of Linux, managing packages and software installations is a routine task. DEB packages are a common format used by Debian and its derivatives like Ubuntu. While most users install packages from precompiled binaries, there are times when you might need to build a package from source. This can be due to the need for a specific configuration, the latest features, or patches that are not available in binary form. Here, we'll walk through how to build DEB packages from source and provide guidance for managing them across different Linux distributions using apt, dnf, and zypper. Before you begin, ensure that your system is prepared with the necessary tools.
  • Posted on
    Featured Image
    Compiling software from source can be an enlightening experience for any Linux user. It gives you more control over the configurations, ensures you get the latest features (even those not yet available in binary form), and optimises the software to suit your particular hardware more effectively. This guide will walk you through the steps to download and compile software from source code, providing specific instructions for various Linux distributions using different package managers like apt, dnf, and zypper. There are several reasons to compile programs from source code: 1. Customization: You can enable or disable specific features that are not in precompiled packages. 2.
  • Posted on
    Featured Image
    In the world of Linux, managing packages is a fundamental skill for any user, particularly system administrators and developers. Different distributions use different package managers for software installation, updates, dependency checks, and removal. Among these, DNF, APT, and Zypper are widely used by major Linux distributions. Sometimes, installing a specific version of a package is necessary due to compatibility requirements or testing scenarios. Here, we'll guide you on how to install specific package versions using these three package managers. DNF is the default package manager for Fedora and other RPM-based distributions such as RHEL (Red Hat Enterprise Linux) and its derivatives like CentOS Stream.
  • Posted on
    Featured Image
    When setting up or maintaining a stable environment on your Linux system, sometimes you need to install a specific version of a package. This could be due to compatibility issues, testing requirements, or rollback scenarios after an update didn’t go as expected. While the process can vary slightly depending on the package manager you are using — whether it's APT (used by Debian and Ubuntu), DNF (used by Fedora), or Zypper (used by openSUSE) — the fundamental approach remains similar. Let's explore how to handle this task in each package manager. APT (Advanced Package Tool) is the default package manager for Debian-based distributions like Ubuntu.
  • Posted on
    Featured Image
    In the ever-evolving realm of Linux, ensuring that your system runs smoothly often involves managing packages efficiently. Occasionally, you may encounter a scenario where a package does not function as expected due to corruption, incomplete installation, or other issues. In such cases, forcing a reinstallation of the package can resolve the problem. This process can vary slightly depending on which package manager your system utilizes. In this blog post, I will guide you through the steps to force a reinstallation of packages using three popular package managers: apt for Debian-based systems, dnf for Fedora systems, and zypper for openSUSE systems. 1.
  • Posted on
    Featured Image
    Introduction: Keeping your Linux system’s packages up to date is generally a recommended practice for security and stability. However, in certain scenarios such as environments that require extensive testing or precise control over when upgrades occur, you might find it necessary to disable automatic updates. This ensures that updates do not interfere with ongoing work, introduce unexpected behaviors, or affect software dependencies unpredictably. Today, we will guide you on how to disable automatic package upgrades for some of the most common package managers in Linux: APT (used by Debian-based distributions), DNF (used by Fedora and its derivatives), and Zypper (used by openSUSE). 1.
  • Posted on
    Featured Image
    Managing software packages efficiently is crucial for maintaining the stability, performance, and security of Linux systems. One advanced technique system administrators often use is package blacklisting. This approach prevents specific packages from being inadvertently installed or updated, which can be vital for compatibility reasons, or to avoid software with known issues. In this blog post, we'll discuss how to blacklist packages using popular package managers like apt (used in Debian and Ubuntu), dnf (used in Fedora), and zypper (used in openSUSE). Package blacklisting is a method to exclude specific packages from being managed through system updates or installations.
  • Posted on
    Featured Image
    Keeping your Linux system up-to-date is critical for ensuring security and stability but sometimes, there are instances when you might not want to update certain packages. In this article, we'll explore how to blacklist or hold packages from being updated in various Linux package managers, including APT (used in Debian-based systems), DNF (utilized in Fedora and its derivatives), and Zypper (the command line interface of openSUSE). APT is the package management system used by Debian and its derivatives like Ubuntu. To prevent a package from being updated, you can hold it using the apt-mark command. This is particularly useful if updating that package would cause issues with your system or disrupt a service.
  • Posted on
    Featured Image
    In the world of Linux, managing software through package managers is a fundamental task for users and administrators. Different distributions rely on different package managers – such as APT (Advanced Package Tool) for Debian-based systems, DNF (Dandified Yum) for Fedora, and Zypper for openSUSE. Each of these tools handles software installation, upgrades, and the management of repositories in slightly different ways. Understanding how to list and manage repository priorities can be crucial in maintaining system stability and performance. This article will explore how to handle repository priorities across these package managers, with a special focus on Zypper. Repositories in Linux are servers containing sets of software packages.
  • Posted on
    Featured Image
    In the realm of system administration, ensuring that your server is secure is paramount. For RHEL (Red Hat Enterprise Linux) and its derivatives (including CentOS and Fedora), managing security patches effectively is crucial to shielding the system from vulnerabilities. While RHEL typically uses the yum or the newest dnf package manager, understanding how to handle security updates across different package managers like apt (for Debian-based systems) and zypper (for SUSE Linux systems) can also prove beneficial. This article will guide you through the necessary steps to identify and apply security updates using various package management tools.
  • Posted on
    Featured Image
    In the world of Ubuntu Linux, ensuring your system is secure is crucial. This means staying on top of security updates for your installed packages. Such updates fix vulnerabilities that could be exploited by attackers. Ubuntu primarily uses the APT (Advanced Package Tool) package management system, but it's useful to know alternatives like DNF and Zypper, especially if you're managing multiple distributions. Here’s a comprehensive guide on using different package managers to check for and apply security updates in Ubuntu. APT is the default package management system for Ubuntu. It’s powerful and handles both installation and upgrade of software packages.
  • Posted on
    Featured Image
    In the sprawling universe of Linux, managing packages efficiently is essential for administrators and developers alike. Repoquery, a part of the yum-utils toolset for YUM and now DNF-based systems, stands out as an invaluable tool for querying detailed information about packages in repositories. Although primarily designed for RPM Package Manager (RPM)-based distributions, the underlying concept of querying package repositories is universally applicable. In this post, we'll explore how to use repoquery effectively with DNF/YUM and touch on similar functionality in APT for Debian-based systems and Zypper for SUSE-based systems.
  • Posted on
    Featured Image
    When managing software packages on Linux, understanding the tools available for searching and managing these packages is crucial. While each Linux distribution might use a different package management system, knowing how to leverage these tools can make managing software a breeze. In this article, we'll dive deep into apt-cache used in Debian and Ubuntu systems, and also touch on dnf and zypper, used in Fedora and openSUSE respectively. apt-cache is a powerful command-line tool used in Debian, Ubuntu, and other Debian-based distributions. It searches the package cache and provides a plethora of information about the packages installed and available.
  • Posted on
    Featured Image
    Resolving Conflicts Between Packages in Linux Bash: A Guide for apt, dnf, and zypper Alright, fellow Linux users, today we're diving into the deep end of package management conflicts and how to resolve them. Whether you’re using Ubuntu, Fedora, or openSUSE, managing package conflicts is a crucial skill that keeps your system running smoothly and your software dependencies in check. Before we get hands-on with solving these pesky problems, let's understand what a package conflict is. In Linux, a package conflict occurs when two or more packages depend on different versions of the same dependency, or when they both try to install the same file to the same location, which typically leads to an error during installation.
  • Posted on
    Featured Image
    For anyone who has dived into the realm of Linux, configuring a bootloader is often one of the most crucial and sometimes challenging tasks you'll encounter. The Grand Unified Bootloader (GRUB) is the most popular bootloader among various Linux distributions. Its flexibility allows it to work seamlessly with a multitude of systems, making it a preferred choice for users and developers. In this article, we’ll explore the various GRUB configurations and defaults across different Linux distributions, helping you understand and perhaps even customise your system’s boot process. GRUB is a multi-boot loader, which means it allows users to have multiple operating systems on the same hardware and choose which one to boot into.
  • Posted on
    Featured Image
    In the contemporary digital age, the security and confidentiality of data have become paramount. As threats evolve, so too must our defenses. One robust method of protecting data is through disk encryption, which ensures that data on a drive is unreadable without the appropriate key or password. This article will delve into disk encryption techniques for two popular Linux distributions: Ubuntu (based on Debian) and AlmaLinux (a fork of CentOS, derived from Red Hat Enterprise Linux). Ubuntu, one of the most popular Linux distributions, uses LUKS (Linux Unified Key Setup) for disk encryption. LUKS is a standard for Linux hard disk encryption that provides a uniform method of managing encrypted disks.
  • Posted on
    Featured Image
    When it comes to setting up storage on a Linux system, using Logical Volume Management (LVM) offers a flexible and scalable method that enhances management capabilities over traditional partitioning. LVM allows one to resize volumes easily, create snapshots, and manage storage using abstracted logical volumes rather than physical drive limitations. In this article, we will walk through the process of setting up LVM during the installation of a Linux system. LVM is a device mapper that provides a logical layer on top of physical storage like hard drives and partitions, allowing system administrators to create a pool of storage known as a storage volume.