Linux Bash

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

  • Posted on
    Featured Image
    For Linux users managing RPM (Red Hat Package Manager) packages, understanding how to query installed packages is essential. This skill is particularly useful for administrators and users who need to verify installations, check updates, and ensure system compatibility. While rpm is the primary tool for such tasks on systems that use RPM packages, like Red Hat Enterprise Linux (RHEL), CentOS, and Fedora, it’s also important to recognize how other package managers like apt, dnf, and zypper interface with RPM systems where applicable. The rpm command with the -qa option is an invaluable tool for listing all installed RPM packages on your system. This command is simple, direct, and outputs every package installed on your system.
  • Posted on
    Featured Image
    When managing a Linux system, especially those based on Debian or its derivatives like Ubuntu, understanding how to interact with the package system is vital. While many users are familiar with high-level tools such as apt, dpkg-query provides more granular control and insight into DEB packages. In this blog post, we will delve into the capabilities of dpkg-query, and touch upon how commands might differ with other package managers like dnf (used in Fedora) and zypper (used in openSUSE). dpkg-query is a command-line tool included with the dpkg package management system, which is the backbone of Debian package management.
  • Posted on
    Featured Image
    Keeping your Linux system secure and up-to-date is crucial, not just for functionality but also to patch security vulnerabilities that could be exploited by attackers. openSUSE, a popular Linux distribution, uses the zypper command-line tool as its package manager for installing, updating, and managing packages. To simplify the update process—ensuring it happens regularly without manual intervention—you can set up zypper-cron, a cron-based background service that automatically runs zypper update operations. In this blog post, we'll guide you through setting up zypper-cron on openSUSE and touch upon how to manage updates in other Linux distributions like those using apt and dnf. First, you need to install the zypper-cron package.
  • Posted on
    Featured Image
    Keeping your Linux systems up-to-date is crucial for security, stability, and accessing new features. However, manually updating packages can be a time-consuming task. Fortunately, several Linux distributions offer tools to automate this process, among which DNF Automatic is prominently used in RHEL (Red Hat Enterprise Linux). In this guide, we will explore how to set up DNF Automatic on RHEL and also briefly discuss automation tools for other package managers like apt for Debian/Ubuntu-based systems, and zypper for openSUSE. DNF Automatic is an extension of DNF, the package manager used in Fedora, RHEL, and CentOS. It allows administrators to schedule and automatically manage package updates.
  • Posted on
    Featured Image
    Keeping your Ubuntu system up-to-date can seem like a chore, especially when you're managing multiple machines or running a server. Fortunately, the unattended-upgrades package simplifies this process by automatically installing security updates, ensuring your system's safety and performance. In this article, we’ll delve into setting up unattended-upgrades on Ubuntu and touch briefly on automating updates for other distributions using different package managers, such as dnf and zypper. Ubuntu uses the APT package management system, making unattended-upgrades the preferred tool for automation.
  • Posted on
    Featured Image
    When managing Linux systems, mastery over package managers is crucial for efficient administration. Package managers are tools that automate the process of installing, upgrading, and removing software packages. In this blog post, we'll delve into advanced administration techniques using three popular package managers: apt for Debian and Ubuntu systems, dnf for Fedora, and zypper for openSUSE. apt is a powerful, free software user interface that works with core libraries to manage the installation and removal of software on Debian, Ubuntu, and related Linux distributions. Updating Package Lists: This is crucial before installing or upgrading packages to get the latest version information from repositories.
  • Posted on
    Featured Image
    Ensuring the authenticity and integrity of packages is a crucial part of maintaining the security of a Linux system. Whether you're installing software, updating packages, or performing system maintenance, verifying that the packages have not been tampered with since their creation is essential. This article will guide you on how to use rpm --checksig, as well as similar verification methods with apt, dnf, and zypper. Before diving into the specifics, it’s important to understand why package verification is necessary. Packages are typically signed with GPG (GNU Privacy Guard) keys that are owned by the package maintainers or distribution maintainers.
  • Posted on
    Featured Image
    DEB packages are the heart of software management systems in Debian-based Linux distributions like Ubuntu. For Linux users not using a Debian-based system, understanding how to handle these packages securely can be valuable, especially in environments where DEB packages need to be used across different Linux flavors. This guide will provide detailed instructions on how to securely download and install external DEB packages, also addressing how users of other distributions with different package managers such as DNF (used in Fedora, Red Hat, and CentOS) and Zypper (used in openSUSE) can handle these packages. The safety of your Linux system heavily depends on the origin of the DEB packages.
  • Posted on
    Featured Image
    Linux, being a hub of open-source activity, offers a variety of distributions each tailored with unique package managers. Among those, Zypper and APT stand out with substantial user bases, employed by openSUSE and Debian-based distributions respectively. In this blog, we'll explore how the package search functionalities of Zypper and APT differ and extend some knowledge to include Fedora's DNF, discussing the subtleties of searching for software packages across different Linux distributions. Before we dive into specifics, let's understand what a package manager does. A package manager automates the process of installing, upgrading, configuring, and removing software packages from a Linux system.
  • Posted on
    Featured Image
    As the Linux ecosystem evolves, so does the complexity and variety of ways in which you can manage applications. One of the more recent advancements in Linux app distribution comes in the form of Flatpak, a utility designed to provide a sandbox environment for distributing and running desktop applications in an isolated manner. Flatpak presents a unified method to package applications that work across different Linux distributions. This capability makes it incredibly valuable, especially in environments where stability, compatibility, and security are priorities. In this article, we'll explore how to manage Flatpak packages and also delve into basic operations using different package managers like apt, dnf, and zypper where necessary.
  • Posted on
    Featured Image
    Linux's flexibility in software management is one of its strongest attributes, offering a variety of methods to install and manage software. Ubuntu, one of the most popular Linux distributions, traditionally uses APT (Advanced Package Tool) as its package management system. However, the introduction of Snap packages by Canonical (the company behind Ubuntu) adds another dimension to managing software on your system. This guide will explain how to use both Snap and APT on Ubuntu, along with relevant instructions for DNF and Zypper where applicable. APT (Advanced Package Tool): APT is the default package management system for Ubuntu and other Debian-based distributions.
  • Posted on
    Featured Image
    Linux, known for its stability and versatility, offers several package managers to maintain the system and software. However, administrators and users alike may occasionally run into package installation issues. Understanding how to effectively troubleshoot these problems can save time and ensure your systems remain functional and secure. In this blog, we'll explore common troubleshooting techniques for three popular package managers: apt, dnf, and zypper. APT (Advanced Package Tool) is the package management system used by Debian and its derivatives like Ubuntu.
  • Posted on
    Featured Image
    When managing packages on a Linux system, it's crucial to maintain clean and manageable software installations. Linux distributions use different package managers, but all have mechanisms to review past transactions, an excellent way to troubleshoot installation issues, verify changes, or simply audit installed software. In this blog, we'll explore how to use dnf history on Fedora and similar distributions, while also covering equivalent commands in apt for Debian/Ubuntu systems, and zypper for openSUSE/SUSE Linux Enterprise. dnf (Dandified YUM) is the default package manager on Fedora and other RPM-based distributions like CentOS and Red Hat Enterprise Linux.
  • Posted on
    Featured Image
    Package pinning is a powerful tool for Linux system administrators and users, enabling them to prioritize certain packages from specific repositories during installation or upgrade. This post will explore package pinning in APT (Advanced Package Tool) and provide a basic comparison with other package managers like DNF (used in Fedora and RHEL) and Zypper (used in openSUSE). Package pinning allows the user to specify which versions of packages should be preferred or avoided, regardless of the version or release available in the repositories the system knows about.
  • Posted on
    Featured Image
    When managing software packages on Linux, you have various tools at your disposal depending on the distribution you are using. Among these tools, DNF, APT, and Zypper stand out for their robust functionality. In this article, we particularly focus on managing software modules and streams, especially in DNF, but we'll also touch on how you can handle similar scenarios using APT and Zypper where applicable. Before diving into the specifics of each package manager, it’s crucial to understand what "modules" and "streams" are in the context of Linux software management.
  • Posted on
    Featured Image
    Managing software packages effectively is a cornerstone of maintaining a robust and efficient Linux system. Various Linux distributions use different package managers to streamline the installation, upgrade, and removal of software packages. In this article, we’ll explore how to use package groups using DNF/YUM (predominantly in Fedora, CentOS, and Red Hat), APT (used in Debian, Ubuntu, and derivatives), and Zypper (used in openSUSE and SUSE Linux Enterprise). Package groups offer a convenient way to manage collections of related packages. This functionality simplifies the process of installing, updating, and maintaining groups of packages that serve a common purpose, such as web servers, desktop environments, or development tools. 1.
  • Posted on
    Featured Image
    Optimizing package management operations is a critical task for any Linux system administrator or enthusiast. Among the various tools at your disposal, Zypper often stands out for its robustness and ease of use on SUSE-based systems. However, users of different distributions also rely on other tools like APT for Debian-based systems and DNF for Fedora and derivatives. Each of these tools has unique features that can make your system more efficient and up-to-date. In particular, enabling auto-refresh for repositories can save you time and potential headaches, ensuring that your package lists are always current. Let's delve into how to set this up for Zypper and touch on best practices for APT and DNF.
  • Posted on
    Featured Image
    Transactional updates represent a fundamental approach to system maintenance and management in openSUSE, particularly in the openSUSE Kubic and MicroOS. The concept centralizes around the idea of ensuring system updates and changes are applied in an atomic, consistent manner. This minimally impacts the running system and enhances the safety and repeatability of system updates, which is vital for environments that demand high availability and stability. Transactional updates are based on Btrfs snapshots and a read-only root filesystem. This combination allows the system to apply updates in a single, atomic operation that can easily be rolled back if necessary, ensuring system integrity and reduced downtime.
  • Posted on
    Featured Image
    When it comes to managing software on Linux, package managers are the unsung heroes. These tools allow for the seamless installation, update, and removal of software packages. RPM (Red Hat Package Manager) is one of the foundational package management systems used by many Linux distributions. Though primarily associated with distributions like Red Hat Enterprise Linux (RHEL), CentOS, and Fedora, understanding RPM can be beneficial across a variety of distros, including those that use apt, dnf, or zypper for high-level package management. RPM itself is a low-level tool that deals directly with .rpm files, serving as an alternative to high-level tools that usually handle dependencies and complex operations more gracefully.
  • Posted on
    Featured Image
    For Linux users, especially those new to Debian-based distributions like Ubuntu, installing software is often a straightforward process thanks to package managers. However, there may be times when you need to manually install DEB packages. In this article, we’ll not only look at how to use dpkg for this purpose but also how to manage dependencies across different package managers including APT, DNF, and Zypper. DEB files are Debian software packages, which are used primarily in distributions based on Debian. The package format is standard for installing software on systems such as Ubuntu, Debian, and other related Linux distributions.
  • Posted on
    Featured Image
    In the diverse ecosystem of Linux distributions, managing a huge array of software packages efficiently is crucial. Whether you’re a newbie or a seasoned sysadmin, understanding meta-packages can simplify software management tasks. This article explores what meta-packages are, their benefits, and how you can manage them using various package managers like apt (used in Debian and Ubuntu), dnf (used in Fedora), and zypper (used in openSUSE). A meta-package is a special type of software package that doesn't contain the actual software, but rather a set of dependencies which are other packages. Essentially, installing a meta-package triggers the installation of all its dependencies.
  • Posted on
    Featured Image
    When it comes to using the terminal in Linux, most users are familiar with Bash, the Bourne Again SHell, which comes pre-installed on many Linux distributions. However, there's an alternative that has been gaining popularity due to its user-friendliness and interactive features: the Friendly Interactive Shell, or fish. In this post, we'll explore what makes fish stand out and provide detailed installation instructions across various Linux distributions using different package managers like apt, dnf, and zypper. Fish is a smart and user-friendly command line shell that is designed for interactive use. Unlike many other shells that require significant setup or scripting out of the box, fish works effectively right after installation.
  • Posted on
    Featured Image
    When working with Linux, one of the key tasks you often encounter is managing software packages. Whether updating, installing, or maintaining software, understanding how to manage package priorities can significantly enhance system stability and functionality. This guide will explore how to handle package priorities using DNF, while also touching on APT and Zypper where relevant. Package priorities determine which packages are preferred by the system during installation or upgrades, particularly when multiple sources or versions are available. This is crucial in environments where stability and specific software versions are critical, or where packages from third-party repositories might conflict with system packages.
  • Posted on
    Featured Image
    For Linux enthusiasts and power users, the choice of a shell can greatly enhance the terminal experience. While Bash is the default shell on many Linux distributions, zsh (Z Shell) provides a wealth of features helpful for interactive use and scripting. In this blog, we'll explore what makes zsh a compelling option and how to install it across various Linux distributions. zsh is a Unix shell that is built on the same architecture as Bash. It includes advanced features such as superior scriptability, improved tab completion, and customizable appearances. zsh combines the best aspects of other shells like bash and ksh, adding its own enhancements.
  • Posted on
    Featured Image
    When managing a Linux system, ensuring that the system uses the preferred versions and sources of software packages is crucial. Often, different repositories or sources might have different versions of the same package, and controlling which one should be preferred is a key aspect of system administration. Today, we're diving into how you can manage package priorities using the package managers APT (used in Debian-based systems), DNF (used in Fedora), and Zypper (used in openSUSE). Package priorities (or pinning) helps you specify which versions of packages should be preferred if multiple versions are available.