Manjaro OpenRC Cheat Sheet
Amidst preparations for my third year at university, I've put together a sort of reference sheet to help me remember all the common commands needed when using Manjaro with OpenRC. It's not complete, but I'll continue to update it with various useful commands I stumble upon. You can find it below.
If you have any that you find useful, post a comment below! I'd love to see what you come up with - I might even add it to this list (crediting you of course)!
Cast List
sudo pacman
: Main package manageryaourt
:pacman
wrapper, also has AUR support. Swap outpacman
foryaourt
to include the AUR.sudo rankmirrors
: Finds and selects the fastest repository mirrors.sudo rc-update
- Enable and disable servicessudo service
- Start, stop, and query the status of services
Commands
Package Management
Command | Description |
---|---|
rankmirrors -i -m rank -d |
Interactively re-find the fastest mirrors |
pacman -Sy |
Synchronise local repository metadata |
pacman -Syy |
Redownload all repository metadata |
pacman -Syua |
Sync with mirrors and update all packages |
pacman -Fs filename |
Search repositories for packages that contain filename |
pacman -Ss search_string |
Search repositories for package name or description that contain a search string |
pacman -S package_name |
Install package_name and any dependencies required |
pacman -Rs package_name |
Remove package_name and all dependencies not needed by anything else |
pacman -Dk |
Check that all required dependencies are installed |
pacman -Q |
List all installed packages and their versions |
pacman -Qe |
List all packages that were installed manually |
pacman -Qd |
List all packages that were isntalled automatically |
pacman -Sii package_name |
See which packages require package_name to be installed |
Services
Command | Description |
---|---|
rc-update |
List all services and their runlevels |
rc-update add service_name default |
Add service_name to the default runlevel |
rc_update delete service_name default |
Remove service_name from the default runlevel |
service service_name start |
Start service_name |
service service_name stop |
Stop service_name |
service service_name status |
Query the status of service_name |
Sources and Further Reading
- Manjaro
- OpenRC
- Package manager command conversion tables
- pacapt, a command that provides a pacman-like interface on top of other package managers