Artix Linux: Add Arch Linux repos, extra + community

When you use Artix Linux based on Arch Linux, and some of * Arch * Linux repositories are missing with pacman in your operation system, this post might be useful.

According to Artix Linux announcement, the repositories of [extra] / [community] are disabled by default:

Artix has reached the stage where it can operate without the help of the Arch repositories, including the preparation of its installation media.

As such, all new weekly ISO images will ship without [extra], [community] and [multilib] enabled in pacman.conf.

Here shows how to enable those repositories. Well, the detail is in Artix official wiki.

First, install artix-archlinux-support:

# pacman -Syu artix-archlinux-support

The output was:

:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
:: Starting full system upgrade...
warning: rsync-openrc: local (20210505-2) is newer than world (20210502-1)
resolving dependencies...
looking for conflicting packages...

Packages (1) artix-archlinux-support-2-1

Total Download Size:   0.00 MiB
Total Installed Size:  0.00 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 artix-archlinux-suppo...     3.3 KiB  7.39 KiB/s 00:00 [##############################] 100%
(1/1) checking keys in keyring                          [##############################] 100%
(1/1) checking package integrity                        [##############################] 100%
(1/1) loading package files                             [##############################] 100%
(1/1) checking for file conflicts                       [##############################] 100%
(1/1) checking available disk space                     [##############################] 100%
:: Processing package changes...
(1/1) installing artix-archlinux-support                [##############################] 100%
Optional dependencies for artix-archlinux-support
    lib32-artix-archlinux-support: archlinux multilib support
:: Running post-transaction hooks...
(1/1) Show archlinux help...
==> Add the arch repos in pacman.conf:

#[testing]
#Include = /etc/pacman.d/mirrorlist-arch


[extra]
Include = /etc/pacman.d/mirrorlist-arch


#[community-testing]
#Include = /etc/pacman.d/mirrorlist-arch


[community]
Include = /etc/pacman.d/mirrorlist-arch


#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist-arch


#[multilib]
#Include = /etc/pacman.d/mirrorlist-arch

==> run: 'pacman-key --populate archlinux'

Next, edit pacman.conf:

# nvim /etc/pacman.conf

to append these lines:

+ #[testing]
+ #Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ [extra]
+ Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ #[community-testing]
+ #Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ [community]
+ Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ #[multilib-testing]
+ #Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ #[multilib]
+ #Include = /etc/pacman.d/mirrorlist-arch

Then, run the command:

# pacman-key --populate archlinux

The output was:

==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
==> Importing owner trust values...
==> Disabling revoked keys in keyring...
==> Updating trust database...
gpg: next trustdb check due at <yyyy-mm-dd>

That's it.
It is able now to install a package in [extra] or [community] repositories such as Deno :)

36