Basic Pacman Usage
Pacman is Manjaro-ARM's default package manager used to install, upgrade, configure and remove software (i.e. to manage software packages).
Note that Pacman can only use the official Manjaro-ARM repository. See AUR for use and info on the Arch User Repository.
Software packages may be installed from several sources, and not just from the official Manjaro-ARM repositories.
Warning: Note that where installing packages from unofficial sources, you do so entirely at your own risk!
From the repositories
To install software to your system the most basic command is this:
sudo pacman -S [package name]
Installing packages with the database and the system outdated may cause errors, so you can also update the database and the system and install the package with this command:
sudo pacman -Syu [package name]
From local or From internet
To install a package that it's in your system, you can use this command:
sudo pacman -U [/path/to/package/][package name.pkg.tar.xz]
Example: Package is located in the Downloads folder
sudo pacman -U ~/Downloads/[package name.pkg.tar.xz]
To install a package from a URL, use this command, of course changing the URL:
sudo pacman -U http://www.example/repo/example.pkg.tar.xz
In the repositories
To search a package in the official repositories, the basic syntax should be:
pacman -Ss [package name]
In the system
To search a package installed on your system with basic information:
pacman -Qs [package name]
For more information about the package, use:
pacman -Qi [package name]
For even more information, like related backup files as well as the date that the package was last altered, use:
pacman -Qii [package name]
Synchronizing and updating your system
To update the database of the Manjaro-ARM repository:
sudo pacman -Sy
Sometimes you may want to force the database update:
sudo pacman -Syy
Now to update your system, you can use:
sudo pacman -Su
You also can update the database and the system, we recommend doing this way to avoid partial system updates:
We recommend using this command as the first thing to do after installing Manjaro-ARM
sudo pacman -Syyu
Dependencies are packages required to another package to work.
To list all dependencies of a particular package, use the following command:
pactree [package name]
Orphan package is a installed packages that are not used by anything else and that consequently serve no purpose.
To list then, use this command:
It is highly recommended to remove orphans from your system, as although harmless, they still serve no purpose other than to take up room and resources.
The following command will search for orphaned packages and remove them for you:
sudo pacman -Rs $(pacman -Qdtq)