• 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 not found

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.

If you encounter the below error while running the command repo-add:

repo-add: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install pacman
Ubuntu apt-get install pacman
Alpine apk add pacman
Arch Linux pacman -S pacman
Kali Linux apt-get install pacman
Fedora dnf install pacman
Raspbian apt-get install pacman

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. CentOS / RHEL : How to disable ssh for non-root users (allowing ssh only for root user)
  2. mons Command Examples in Linux
  3. amass viz – Visualize gathered information in a network graph (Command Examples)
  4. initctl Command Examples in Linux
  5. cryptsetup: command not found
  6. virsh Command Examples in Linux
  7. circo: Render an image of a circular network graph from a graphviz file
  8. pdbedit Command Examples in Linux
  9. jstack Command Examples
  10. dvc gc: Remove unused files and directories from the cache or remote storage

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