PIG CLI
Module:
Use the pig
command-line tool to manage software repositories on Linux systems. Install it with:
curl https://repo.pigsty.cc/pig | bash
Add repositories with the following commands. The pig
tool automatically detects your network conditions and selects the fastest mirror:
pig repo add pigsty # Add PIGSTY repository
pig repo add pgdg # Add PGDG repository
pig repo add pgsql # Add PGDG + PIGSTY mirrors
pig repo add node # Add OS default software repositories
pig repo add all # Add PIGSTY + PGDG + NODE repositories
Repository files are written to /etc/yum.repos.d/
(EL) or /etc/apt/sources.list.d/
(Debian/Ubuntu).
To add all repositories and update the software cache:
pig repo add all -u # Add NODE + PGSQL software repositories and update cache
To clear existing repositories and add new ones:
pig repo add all -ru # remove + update
pig repo set # Shorthand for the above command
Removed repository files are backed up to the relevant backup
directory.
We recommend using this method to manage repositories, but you can also manually configure YUM/APT repositories if preferred.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.