You are not logged in.

#1 2022-06-08 02:16:38

diegosanchez
Member
Registered: 2022-06-07
Posts: 2

[SOLVED] Make a local package database register group packages

Hello everyone!

I've been trying to make an ISO that has all of the packages for an offline installation, using an offline repository Offline installation

When I'm booted in to the ISO, and I'm going to do base installation with pacstrap it can't find group of packages such as base and base-devel, for example.

pacman -Syu # to sync package database
pacstrap /mnt/archinstall base
==> Creating install root at /mnt/archinstall
==> Installing packages to /mnt/archinstall
:: Synchronizing package databases...
custom is up to date
error: target not found: base

Is there a method for adding the group meta package ?

As a workaround, I've made a list of the package names that a package group has and I'm installing the packages this way.

pacstrap /mnt - < pkglist.txt

These are the steps that I've followed to create the ISO. I'm using the releng profile.

Make a local repository that has all the packages

mkdir /tmp/blankdb
pacman -Syw --cachedir archlive/airootfs/usr/local/repo --dbpath /tmp/blankdb base base-devel

Make the package database

cd archlive/airootfs/usr/local/repo
repo-add custom.db.tar.gz *.pkg.tar.zst

Lastly I build the iso

sudo mkarchiso -v -w ./workdir .

This is the pacman config that ends on the ISO, it's located at archlive/airootfs/etc/pacman.conf, the other repositories are commented so pacman uses only the custom one.

[custom]
SigLevel = Optional
Server = file:///usr/local/repo

Last edited by diegosanchez (2022-06-08 03:18:06)

Offline

#2 2022-06-08 02:25:55

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: [SOLVED] Make a local package database register group packages

repo-add custom.db.tar.gz *.pkg.tar.zst

This misses packages using the older xz compression such as base

Offline

#3 2022-06-08 02:30:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Make a local package database register group packages

Base isn't a group, it's a meta package. They are to totally separate things.

If it can't find base, you simply didn't add it to the local repo. Groups are just a property of the packages themselves. What, exactly, are you adding to the local repo?

Offline

#4 2022-06-08 03:17:12

diegosanchez
Member
Registered: 2022-06-07
Posts: 2

Re: [SOLVED] Make a local package database register group packages

Thanks for the quick answers.

As Ioqs said, this was the problem, excluding the old xz compression such as base.

repo-add custom.db.tar.gz *.pkg.tar.zst

This fixes it,

repo-add custom.db.tar.gz *.pkg.tar.zst *.pkg.tar.xz

I was adding only *.pkg.tar.zst to exclude *.sig files, because they were preventing me from creating the database, repo-add errored out. Didn't know that *.pkg.tar.xz where package files

Offline

Board footer

Powered by FluxBB