• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

repo-add Command Examples in Linux

by Deepika

Pacman is the package manager used by Arch Linux, which is responsible for installing, upgrading, and removing software packages on the system. The repo-add command is a utility provided by Pacman that is used for package database maintenance.

When a new package is created, it needs to be added to a repository in order for it to be installed via Pacman. The repo-add command allows you to add new packages to a repository database, or to update an existing package in the database.

The repo-add command takes two arguments: the first is the name of the repository database file to be updated, and the second is the package file to be added to the repository. The package file must be in a specific format, which varies depending on the package format used by the package manager.

repo-add Command Examples

1. Add all package binaries in the current directory and remove the old database file:

# repo-add --remove path/to/database.db.tar.gz *.pkg.tar.zst

2. Add all package binaries in the current directory in silent mode except for warning and error messages:

# repo-add --quiet path/to/database.db.tar.gz *.pkg.tar.zst

3. Add all package binaries in the current directory without showing color:

# repo-add --nocolor path/to/database.db.tar.gz *.pkg.tar.zst

Summary

Overall, repo-add is a useful utility for maintaining Arch Linux package repositories, making it easy to add and update packages, and allowing users to easily install and manage software on their systems.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to uninstall postgresql-client-common software package in Ubuntu
  2. gh pr: Manage GitHub pull requests from the command-line
  3. hdiutil Command Examples in Mac
  4. httpie Command Examples in Linux
  5. DHCP configuration file /etc/dhcp/dhcpd.conf explained
  6. RedHat / CentOS : How to change currently active slave interface of bonding online
  7. nmtui: command not found
  8. a2ensite Command Examples in Linux
  9. powertop Command Examples in Linux
  10. virt-manager Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright