How to use akabei (beta) to search for, install, upgrade and uninstall packages


(Hans Tovetjärn) #1

akabei is the future replacement for pacman in Chakra. It is currently in active development but not yet ready for use in production environments. This tutorial will explain how to install and use akabei - but you will first need to know how to use pacman and how to enable the [testing] repository.


Installing akabei

Install akabei from the [testing] repository:

# pacman -S akabei

To test akabei in a relatively safe manner, create a directory $HOME/akabei_testing to contain a copy of the existing file system structure (as seen in /):

$ mkdir -p ~/akabei_testing
$ cd akabei_testing

Download this shell script, and execute it to set up the file system structure:

$ wget
$ sh ./

The script requires you to type in your password at some point. The script is also slow. Once done, edit /etc/akabei.conf to use the database files, cache, and file system structure in $HOME/akabei_testing, i.e.:

RootDir     = /home/YOURUSERNAMEHERE/akabei_testing/buildroot/_chroots/master-x64/
DatabaseDir = /home/YOURUSERNAMEHERE/akabei_testing/buildroot/databases/
CacheDir    = /home/YOURUSERNAMEHERE/akabei_testing/buildroot/_cache-x64/

Now the setup is complete and you can start with synchronizing the databases:

$ akabei sync

A dialog should be displayed, prompting you to enter your password. If it does not, your polkit setup may be faulty. Try running this instead:

$ sudo akabei sync


Here is a sample of the operations that akabei can perform. To read more examples, refer to the manpage, man 8 akabei.

Installing packages

Note that packages often have a series of optdepends - optional dependencies - which are packages that provide additional functionality to the application, albeit not strictly required for running it.
:warning: Partial upgrades are not supported

To install a single package or list of packages (including dependencies), issue the following command:

# akabei install package_name1 package_name2 ...

Removing packages

To remove a single package, leaving all of its dependencies installed:

# akabei remove package_name

To remove a package and its dependencies which are not required by any other installed package:

# akabei clean package_name

Upgrading packages

:warning: Partial upgrades are not supported

akabei can update all packages on the system with just one command. This could take a while depending on how up-to-date the system is. The following command synchronizes the repository databases and updates the system’s packages, excluding “local” packages that are not in the configured repositories:

# akabei upgrade

Querying package databases

akabei can search for packages in the local database:

$ akabei search string1 string2 ...

To search for already installed packages:

$ akabei info string1 string2 ...

When will Akabei be released?
Why will Pacman be replaced with a new package manager?
What does Chakra use for package management and installation?
(Hans Tovetjärn) #2

(Hans Tovetjärn) #3