Well i didn’t have any issues building with pamac or yay. I’ve never done this so i was just curious as it seems a little daunting. ![]()
Agreed, see quote below ![]()
It is at first but downside of installing PKGBUILDS with yay(and probably pamac as well) is that all the build dependencies get installed on your system. When building the PKGBUILDS in a chroot, the dependencies needed to build a package from the PKGBUILD only get installed in that chroot, so once you are finished building a package you are not left with another bunch of build dependencies.
I had to type
sudo grub-mkconfig -o /boot/grub/grub.cfg
but then it worked perfectly for me
Your mic as well?
Confirmed. Sound and mic are both working as intended.
Glad to have helped out! Do you still want me to reply to about the thin you ran into with me aurutils guide this evening or you are good with what you used to build the linux-next kernel? I’ll probably update it this evening anyways since I got this far into writing and editing it.
Sure, please. But I’ve seen that you’ve already shared it. Thank you ![]()
Could I use this to install linux-mainline as well, right? Maybe I give it another try, but as long as there is no issue linux-next should be fine to go with ![]()
Could I use this to install linux-mainline as well, right? Maybe I give it another try, but as long as there is no issue linux-next should be fine to go with
Yes, you can install a PKGBUILD with any AUR helper that you like, the only thing you will have to remember is if you build one with aurutils, it will be added to your local repo for aur packages. Then you have to run “ur sync -c -u” to check for PKGBUILDS update first and then “pacman -Syu” to update the package on your system.
Yes, you can install a PKGBUILD with any AUR helper that you like, the only thing you will have to remember is if you build one with aurutils, it will be added to your local repo for aur packages. Then you have to run “ur sync -c -u” to check for PKGBUILDS update first and then “pacman -Syu” to update the package on your system.
Thank you for the valuable pointer and once again for taking the time to write this step-by-step guide. I very much appreciate this and definitely wanna give it a try next week.
I always remove them anyway.
Until they are reinstalled when with a new version of the PKBUILD and you have to do it all over again. Whatever works for you and if you’re happy with it, I just like this way better and it’s less time consuming instead of having to remove all the dependencies each time with each new version of the PKGBUILD.
- Create the repository database:
If you don’t have any already built packages:
repo-add /var/cache/pacman/aurpkg/aur.db.tar.gzIf you already have some built AUR packages somewhere, move them to your localrepo directory and create database adding the packages. As example we are moving the manual built packackage to our localrepo and then adding it to the repo database.
cd Downloads/aurutils
mv .pkg.tar /var/cache/pacman/aurpkg
cd /var/cache/pacman/aurpkg
repo-add -n aur.db.tar.gz .pkg.tar
This step is still a little unclear. What do you mean with “If you already have some built AUR packages somewhere”? Do the ones installed with yay command count as well (including aurutils)?
Currently it looks like this:
[atman@kali ~]$ pacman -Qme
aurutils 18.5-1
brave-bin 1:1.62.165-1
linux-next-git 20240216.r0.gd37e1e4c52bc-1
linux-next-git-headers 20240216.r0.gd37e1e4c52bc-1
mailspring-bin 1.13.3-2
pamac-aur 11.7.1-2
For the first command there are two warnings (no more packages available, creating empty database):
[atman@kali ~]$ repo-add /var/cache/pacman/aurpkg/aur.db.tar.gz
==> Entpacke aur.db.tar.gz an einen temporären Ort...
==> Entpacke aur.files.tar.gz an einen temporären Ort...
==> Erstelle aktualisierte Datenbank-Datei '/var/cache/pacman/aurpkg/aur.db.tar.gz'
==> WARNUNG: Keine Pakete mehr vorhanden, erstelle leere Datenbank.
==> WARNUNG: Keine Pakete mehr vorhanden, erstelle leere Datenbank.
This step is still a little unclear. What do you mean with “If you already have some built AUR packages somewhere”? Do the ones installed with yay command count as well (including aurutils)?
You can build packages manually using “makepkg”, sometimes people built a package manually, which also results in a package that end ins “pkg.tar.zst”. I saying there if you did that and if you want to add that package to your localrepo, you have to first move that package to your localrepo directory and than create the repo and add those packages to the database by running " repo-add -n aur.db.tar.gz .pkg.tar". Same goes if you were to want to add the already packages built by yay or paru. The other option would be to create a empty database and just build those packages with aurutils.
You can build packages manually using “makepkg”, sometimes people built a package manually, which also results in a package that end ins “pkg.tar.zst”. I saying there if you did that and if you want to add that package to your localrepo, you have to first move that package to your localrepo directory and than create the repo and add those packages to the database by running " repo-add -n aur.db.tar.gz .pkg.tar". Same goes if you were to want to add the already packages built by yay or paru. The other option would be to create a empty database and just build those packages with aurutils.
Alright, thanks. The packages built by yay are here:
~/.cache/yay
Do we have to move the whole folders to the localrepo directory or specific files of it?
It’s only if you want to manage have those packages built by aurutils. Since you just want to try aurutils, I would just start with by creating an empty database. So just do this if you are at that step between choosing between creating an empty database or a database with already existing packacages.
If you don’t have any already built packages:
repo-add /var/cache/pacman/aurpkg/aur.db.tar.gz
It’s only if you want to manage have those packages built by aurutils. Since you just want to try aurutils, I would just start with by creating an empty database. So just do this if you are at that step between choosing between creating an empty database or a database with already existing packacages.
If you don’t have any already built packages: repo-add /var/cache/pacman/aurpkg/aur.db.tar.gz
That’s the command which I’ve already used, thanks.
- Add your localrepo to the same file(/etc/aurutils/pacman-x86_64.conf) and and enable the multilib repo if you use it in your /etc/pacman.conf repo.
What does this mean, especially the point with enabling the multilib repo?
Do we have to add this text here only to the file, or is there something else to do?
[aur]
SigLevel = Never
Server = file:///var/cache/pacman/aurpkg
What does this mean, especially the point with enabling the multilib repo?
Do we have to add this text here only to the file, or is there something else to do?
The extra.conf file you copied to /etc/aurutils/pacman-x86_64.conf. Make sure you also have your localrepo added there, and if you for example also have the multilib repo enabled in /etc/pacman.conf also enable it in /etc/aurutils/pacman-x86_64.conf. Does that make sense?
[aur]
SigLevel = Never
Server = file:///var/cache/pacman/aurpkg
So this should be in both /etc/pacman.conf and /etc/aurutils/pacman-x86_64.conf.
The extra.conf file you copied to /etc/aurutils/pacman-x86_64.conf. Make sure you also have your localrepo added there, and if you for example also have the multilib repo enabled in /etc/pacman.conf also enable it in /etc/aurutils/pacman-x86_64.conf. Does that make sense?
Thanks and yes, it makes sense. So the multilib repo isn’t enabled by your step-to-step guide, so there’s nothing to do for that and it’s not needed right?
Install an AUR package in a clean chroot
aur sync -c hello (Replace with whatever package you want to build, when it aks to for your password enter it and review the PKBUILD read through it and then exit with vim commands “:q!” )
So if I wanna install linux-mainline the command is
aur sync -c linux-mainline
What about the headers? Are they needed to be installed seperately or can two packages be combined with the command line? Like
aur sync -c linux-mainline linux-mainline-headers
So if I wanna install linux-mainline the command is
Correct.
What about the headers? Are they needed to be installed seperately or can two packages be combined with the command line? Like
aur sync -c linux-mainline linux-mainline-headers
You don’t need the headers unless you have an Nvidia gpu where you need to compile the Nvidia kernel module for your gpu to work with that kernel or if you are using another module for something that isn’t included in the kernel. From my experience if a PKGBUILD has another AUR dependency defined in the PKGBUILD it will pull that in automatically if it needs it but it it’s optional it won’t.
Correct.
Thank you once again. The command worked, but the screen afterwards looks like this. How can the installation be started?
linux-mainline/ 47 B
linux-mainline/config 264 K linux-mainline/
linux-mainline/.git/ 158 B |-- .SRCINFO
linux-mainline/linux.install 853 B |-- .git/
linux-mainline/linux.install.pkg 873 B | |-- FETCH_HEAD
linux-mainline/merge-with-testing 483 B | |-- HEAD
linux-mainline/PKGBUILD 6.6 K | |-- branches/
linux-mainline/.SRCINFO 1.5 K | |-- config
| |-- description
| |-- hooks/
| | |-- applypatch-msg.sample
| | |-- commit-msg.sample
| | |-- fsmonitor-watchman.sample
| | |-- post-update.sample
| | |-- pre-applypatch.sample
| | |-- pre-commit.sample
| | |-- pre-merge-commit.sample
| | |-- pre-push.sample
| | |-- pre-rebase.sample
| | |-- pre-receive.sample
| | |-- prepare-commit-msg.sample
| | |-- push-to-checkout.sample
| | |-- sendemail-validate.sample
| | `-- update.sample
| |-- index
| |-- info/
| | `-- exclude
| |-- logs/
| | |-- HEAD
| | `-- refs/
| | |-- heads/
| | | `-- master
| | `-- remotes/
| | `-- origin/
| | `-- HEAD
| |-- objects/
| | |-- info/
| | `-- pack/
| | |-- pack-d18a45e3a2101179cf83346b13033507602c3930.idx
| | |-- pack-d18a45e3a2101179cf83346b13033507602c3930.pack
| | `-- pack-d18a45e3a2101179cf83346b13033507602c3930.rev
| |-- packed-refs
| `-- refs/
| |-- heads/
| | `-- master
| |-- remotes/
| | `-- origin/
| | `-- HEAD
| `-- tags/
|-- PKGBUILD
|-- config
|-- linux.install
You use the arrow keys to go to the PKGBUILD file to review it, then you can can use “:q!” to exit and it will start building it. Once it is complete you just have run “pacman -Syu linux-mainline” to install it.
You use the arrow keys to go to the PKGBUILD file to review it, then you can can use “:q!” to exit and it will start building it. Once it is complete you just have run “pacman -Syu linux-mainline” to install it.
The command worked, but the installation failed because of a missing internet connection (the nb was too far away from the router). After restarting it shows the following error:
[atman@kali ~]$ aur sync -c linux-mainline
==> Using [aur] repository
-> linux-mainline (none) -> 6.8rc5-1
==> Retrieving package files
fetch: linux-mainline: already up to date
==> ERROR: '/var/lib/aurbuild/x86_64/root' does not appear to be an Arch chroot.
This was the output for the first time:
[atman@kali ~]$ aur sync -c linux-mainline
==> Using [aur] repository
-> linux-mainline (none) -> 6.8rc5-1
==> Retrieving package files
fetch: linux-mainline: already up to date
[sudo] Passwort für atman:
install: Verzeichnis '/var/lib/aurbuild' wird angelegt
install: Verzeichnis '/var/lib/aurbuild/x86_64' wird angelegt
Create subvolume '/var/lib/aurbuild/x86_64/root'
==> Creating install root at /var/lib/aurbuild/x86_64/root
==> Installing packages to /var/lib/aurbuild/x86_64/root
:: Synchronizing package databases...
core downloading...
extra downloading...
aur downloading...
error: failed retrieving file 'core.db' from mirrors.xtom.de : Could not resolve host: mirrors.xtom.de
warning: too many errors from mirrors.xtom.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirrors.xtom.de : Could not resolve host: mirrors.xtom.de
error: failed retrieving file 'core.db' from pkg.fef.moe : Could not resolve host: pkg.fef.moe
warning: too many errors from pkg.fef.moe, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from pkg.fef.moe : Could not resolve host: pkg.fef.moe
error: failed retrieving file 'core.db' from mirror.selfnet.de : Could not resolve host: mirror.selfnet.de
warning: too many errors from mirror.selfnet.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirror.selfnet.de : Could not resolve host: mirror.selfnet.de
error: failed retrieving file 'core.db' from arch.unixpeople.org : Could not resolve host: arch.unixpeople.org
warning: too many errors from arch.unixpeople.org, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from arch.unixpeople.org : Could not resolve host: arch.unixpeople.org
error: failed retrieving file 'core.db' from mirror.f4st.host : Could not resolve host: mirror.f4st.host
warning: too many errors from mirror.f4st.host, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirror.f4st.host : Could not resolve host: mirror.f4st.host
error: failed retrieving file 'core.db' from mirror.moson.org : Could not resolve host: mirror.moson.org
warning: too many errors from mirror.moson.org, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirror.moson.org : Could not resolve host: mirror.moson.org
error: failed retrieving file 'core.db' from archlinux.thaller.ws : Could not resolve host: archlinux.thaller.ws
warning: too many errors from archlinux.thaller.ws, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from archlinux.thaller.ws : Could not resolve host: archlinux.thaller.ws
error: failed retrieving file 'core.db' from ftp.halifax.rwth-aachen.de : Could not resolve host: ftp.halifax.rwth-aachen.de
warning: too many errors from ftp.halifax.rwth-aachen.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from ftp.halifax.rwth-aachen.de : Could not resolve host: ftp.halifax.rwth-aachen.de
error: failed retrieving file 'core.db' from at.arch.mirror.kescher.at : Could not resolve host: at.arch.mirror.kescher.at
warning: too many errors from at.arch.mirror.kescher.at, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from at.arch.mirror.kescher.at : Could not resolve host: at.arch.mirror.kescher.at
error: failed retrieving file 'core.db' from dist-mirror.fem.tu-ilmenau.de : Could not resolve host: dist-mirror.fem.tu-ilmenau.de
warning: too many errors from dist-mirror.fem.tu-ilmenau.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from dist-mirror.fem.tu-ilmenau.de : Could not resolve host: dist-mirror.fem.tu-ilmenau.de
error: failed retrieving file 'core.db' from mirror.sunred.org : Could not resolve host: mirror.sunred.org
warning: too many errors from mirror.sunred.org, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirror.sunred.org : Could not resolve host: mirror.sunred.org
error: failed retrieving file 'core.db' from mirrors.niyawe.de : Could not resolve host: mirrors.niyawe.de
warning: too many errors from mirrors.niyawe.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirrors.niyawe.de : Could not resolve host: mirrors.niyawe.de
error: failed retrieving file 'core.db' from arch.jensgutermuth.de : Could not resolve host: arch.jensgutermuth.de
warning: too many errors from arch.jensgutermuth.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from arch.jensgutermuth.de : Could not resolve host: arch.jensgutermuth.de
error: failed retrieving file 'core.db' from arch.phinau.de : Could not resolve host: arch.phinau.de
warning: too many errors from arch.phinau.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from arch.phinau.de : Could not resolve host: arch.phinau.de
error: failed retrieving file 'core.db' from packages.oth-regensburg.de : Could not resolve host: packages.oth-regensburg.de
warning: too many errors from packages.oth-regensburg.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from packages.oth-regensburg.de : Could not resolve host: packages.oth-regensburg.de
error: failed retrieving file 'core.db' from mirror.ubrco.de : Could not resolve host: mirror.ubrco.de
warning: too many errors from mirror.ubrco.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirror.ubrco.de : Could not resolve host: mirror.ubrco.de
error: failed retrieving file 'core.db' from arch.mirror.zachlge.org : Could not resolve host: arch.mirror.zachlge.org
warning: too many errors from arch.mirror.zachlge.org, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from arch.mirror.zachlge.org : Could not resolve host: arch.mirror.zachlge.org
error: failed retrieving file 'core.db' from mirror.cmt.de : Could not resolve host: mirror.cmt.de
warning: too many errors from mirror.cmt.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirror.cmt.de : Could not resolve host: mirror.cmt.de
error: failed retrieving file 'core.db' from ftp.spline.inf.fu-berlin.de : Could not resolve host: ftp.spline.inf.fu-berlin.de
warning: too many errors from ftp.spline.inf.fu-berlin.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from ftp.spline.inf.fu-berlin.de : Could not resolve host: ftp.spline.inf.fu-berlin.de
error: failed retrieving file 'core.db' from mirror.bethselamin.de : Could not resolve host: mirror.bethselamin.de
warning: too many errors from mirror.bethselamin.de, skipping for the remainder of this transaction
error: failed retrieving file 'extra.db' from mirror.bethselamin.de : Could not resolve host: mirror.bethselamin.de
error: failed to synchronize all databases (invalid url for server)
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages