Manjaro User Guide
Manjaro User Guide
Octopi
Note : The windows decorations displayed in the following subsection may
differ from the ones currently used. It does not affect the methods shown.
The process of installing new software using Octopi is very similar
to the one using Pamac.
Using Pacman
This will only download the package lists if there has been a change.
Occasionally you may want to force the package lists to be down-
loaded. To do this, type:
sudo pacman -Syy
Updating software
Pacman will allow you to perform an update of software already
installed with the command:
sudo pacman -Su
It’s a good idea to check whether the package lists are up-to-date at
the same time. To do so, type:
sudo pacman -Syu
user guide 123
Installing software
Removing software
To remove a software package you need to know its name, but the
command is straightforward. To remove Leafpad, type:
If at a later date you want to remove all orphan packages and con-
figuration files for packages that you removed some time ago, the
following command will do it:
To exit, press q.
sudo pacman-mirrors -f 0
This will test the speed of all currently available mirrors and set your
machine to use the best for you. Once this command has completed, 2: sudo pacman-mirrors -f 0
you should force a download of the package lists with the command:
sudo pacman -Syyu
Choosing mirrors
If you would like more control over which mirrors to use, run the
command:
sudo pacman-mirrors -i
This will allow you to select which mirror, or mirrors, to try when
checking for software updates and downloading new packages. It’s 3: sudo pacman-mirrors -i
normally best to choose mirrors that are geographically close to you,
so if you’re in Canada then servers from Canada and the US are
generally a good bet. Of course, you’re free to choose whichever you
want!
To reset back to an automatic choice, run this command:
sudo pacman-mirrors -f
user guide 125
Mirrors can also be refreshed from within Pamac. There you can
select the country from which to choose the mirrors. Choosing your
country or one close to yours is generally a good idea.
Switching branches
When you install Manjaro, unless you specifically installed a preview
version, you will be using the stable branch. This set of packages has
the most testing and so is the best for most users. However, you may
want to help test packages before they move to the stable repository.
To do this, you can switch to the testing branch with the command:
The testing repository has packages that have been checked by the
Manjaro development team to make sure they work correctly. How-
ever, the amount of testing done is much smaller than for the stable
branch - but this is how they get tested!
If you want to live on the bleeding edge, you can switch to the
unstable branch. This is normally used by the Manjaro developers.
Packages from the unstable branch can cause problems, so this is not
something to do lightly. If you ever decide to try it out, the command
is:
If you switch away from the stable branch, but want to move back,
it’s actually pretty easy. You can switch back to the stable branch in
the same way you left it, with the command:
This will leave the newer packages on your system and these will be
replaced as the stable branch catches up. However, if you want to
force a downgrade of packages back to the stable version, use:
This means Pacman thinks it is already running. If it is, and you try
to force an installation or removal of software, the package database
can be left in an inconsistent state. This would be bad. So, the first
thing to check is whether an installer is running. One of the easiest
ways to check is to run a terminal command:
ps x | grep pacman
This might look complicated, but it’s just two small commands joined
(piped) together. First,
ps x
searches for the text “pacman”. The pipe, |, takes the output from
the first and feeds it to the second. To check whether another pro-
gram is running you can just change the text “pacman” to something
else:
ps x | grep pamac
ps x | grep octopi
Once you are sure an installer is not running, you can delete Pac-
man’s lock file with the command:
sudo rm /var/lib/pacman/db.lck
• Ensures no packages are left out of line with the current repository
state.
128 manjaro linux
More information