You are not logged in.

#1 2024-09-15 08:34:27

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 322
Website

Migrate from paru to manual

Hello I am facing another issue with paru and have had enough. I am, finally, going to do each one manually. My question is, I seems to have a huge amount of AUR packages, is there a best way to move from the helper system?
pacman -Qm

archnews2 1.3.1-1
betterbird-bin 115.15.0-2
brother-dcp-l2530dw 4.0.0-1
brscan4 0.4.11_1-2
bsdmainutils 12.1.7-2
devilspie2 0.44-1
downgrade 11.3.0-1
dupeguru 4.3.1-2
duplicati-beta-bin 2.0.8.1-2
floorp-bin 11.18.1-1
geany-themes 1.24-1
get_iplayer 3.35-1
google-chrome 128.0.6613.137-1
guayadeque 0.4.7+5+g8f214144-1
imagy-xfce4 0.2-1
jmtpfs 0.5-3
lib32-acl 2.3.2-1
lib32-brotli 1.1.0-1
lib32-bzip2 1.0.8-4
lib32-curl 8.10.0-1
lib32-dbus 1.14.10-2
lib32-e2fsprogs 1.47.1-1
lib32-expat 2.6.3-1
lib32-fontconfig 2:2.15.0-1
lib32-freetype2 2.13.3-2
lib32-gettext 0.22.5-1
lib32-glib2 2.80.5-1
lib32-harfbuzz 9.0.0-1
lib32-icu 75.1-1
lib32-keyutils 1.6.3-2
lib32-krb5 1.21.3-1
lib32-libcap 2.70-1
lib32-libdrm 2.4.123-1
lib32-libelf 0.191-1
lib32-libffi 3.4.6-1
lib32-libgcrypt 1.11.0-1
lib32-libglvnd 1.7.0-1
lib32-libgpg-error 1.50-1
lib32-libidn2 2.3.7-1
lib32-libldap 2.6.8-1
lib32-libltdl 2.5.2+r1+g2fe3a3e2-1
lib32-libnghttp2 1.63.0-1
lib32-libnghttp3 1.5.0-1
lib32-libnl 3.10.0-1
lib32-libnsl 2.0.1-1
lib32-libpcap 1.10.5-2
lib32-libpciaccess 0.18.1-1
lib32-libpng 1.6.44-1
lib32-libpsl 0.21.5-1
lib32-libssh2 1.11.0-2
lib32-libtirpc 1.3.5-1
lib32-libunistring 1.2-1
lib32-libunwind 1.8.1-1
lib32-libx11 1.8.10-1
lib32-libxau 1.0.11-2
lib32-libxcb 1.17.0-1
lib32-libxcrypt 4.4.36-2
lib32-libxcursor 1.2.2-1
lib32-libxdmcp 1.1.5-1
lib32-libxext 1.3.6-1
lib32-libxfixes 6.0.1-2
lib32-libxi 1.8.2-1
lib32-libxkbcommon 1.7.0-2
lib32-libxml2 2.13.3-1
lib32-libxrandr 1.5.4-1
lib32-libxrender 0.9.11-2
lib32-libxshmfence 1.3.2-2
lib32-libxxf86vm 1.1.5-2
lib32-llvm-libs 18.1.8-1
lib32-lm_sensors 1:3.6.0.r41.g31d1f125-3
lib32-mesa 1:24.2.2-1
lib32-ncurses 6.5-1
lib32-nvidia-utils 560.35.03-1
lib32-openssl 1:3.3.2-1
lib32-pam 1.6.1-1
lib32-pcre2 10.44-1
lib32-systemd 256.6-1
lib32-util-linux 2.40.2-1
lib32-wayland 1.23.1-1
lib32-xz 5.6.2-1
lib32-zlib 1.3.1-1
lib32-zstd 1.5.6-1
libnm-iwd 1.48.10-1
masterpdfeditor-free 4.3.89-1
mod_fcgid 2.3.9-5
networkmanager-iwd 1.48.10-1
paccache-hook 1.2.0-1
perl-mojolicious 9.38-1
plymouth-theme-hud-git r47.5d88174-1
popsicle-bin 1.3.3-2
rtl8821au-dkms-git 5.12.5.2.r234.g0b12ea5-1
slrn 1.0.3-4
ttf-ms-fonts 2.0-12
tuxedo-control-center-bin 2.1.13-1
tuxedo-drivers-dkms 4.6.3-1
upd72020x-fw 1:1.0.0-2
wine 9.16-1
winegui-bin 2.6.1-1
xfce4-docklike-plugin 0.4.2-5
xfce4-kbdleds-plugin 0.3.0-1
xnviewmp 1.8.0-2

Help and advice is needed please.

Last edited by SimonJ (2024-09-15 08:35:02)


Rlu: 222126

Offline

#2 2024-09-15 09:37:03

cryptearth
Member
Registered: 2024-02-03
Posts: 2,167

Re: Migrate from paru to manual

if you facing the issue of mismatching libalpm version: just wait for paru to update - google reveals it's not the first time and seem to happen everytime when pacman updates libalpm
a workaround: use yay and build from source (don't use yay-bin - it also causes this issue)
others suggest to set a symlink from v14 to v15 - which also was an option back for v13, v12 and even v11 as by some old posts I found

Offline

#3 2024-09-15 09:47:49

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 322
Website

Re: Migrate from paru to manual

I did symlink the library and it worked but I thought it might be worth moving away from helpers completely.
Thank you for the yay option but I got into all sorts if issues with yay :-(


Rlu: 222126

Offline

#4 2024-09-15 10:12:54

cryptearth
Member
Registered: 2024-02-03
Posts: 2,167

Re: Migrate from paru to manual

well - honestly I don't find any difference between yay and paru - in fact: with paru I sometimes had issues with importing keys while yay managed to do this correctly
as for going the manual way: if you still want some automation give aurutils a shot as it comes with a helper to check local package versions with aur and can help to keep them up-to-date
going full ham without any helper - well, your list looks like if you would have only core repo active without extra nor multilib - as most of the stuff it lists as foreign is part of the official repos and don't need install via aur - so I would recommend first to sort that out to shrink the list of packages actual from aur

Offline

#5 2024-09-15 10:14:01

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 322
Website

Re: Migrate from paru to manual

Thanks, I will see how it goes, I appreciate the advice and may well keep paru :-)


Rlu: 222126

Offline

#6 2024-09-16 08:26:05

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 322
Website

Re: Migrate from paru to manual

I have decided to try auracle as it seems to do what I need simply.
I have this to help me, any better options?

#!/bin/bash
username=$(whoami)
aurdir=/home/$username/aur
cd $aurdir
if [[ $(auracle sync) ]]; then
auracle download -r $(auracle sync -q)
else
    echo "No updates found"
fi

exit

So far no updates, but I may expand the script once I see it in action :-)


Rlu: 222126

Offline

#7 2024-09-16 08:54:11

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 274

Re: Migrate from paru to manual

Personally I use auracle to track out of date AUR packages, I've created a pacman hook that runs "auracle outdated" after an upgrade so it lets me know if I need to update any AUR packages after an update.

I then have a directory ~/Programs/AUR/
In there is each AUR package and if an update is required, I go into a folder and run 'git pull', then 'makepkg -src', then if I'm happy the build went as expected and run 'pacman -U package'
Then after a build I run 'git clean -dfx' and possibly 'git reset --hard HEAD' to remove the package file and build files, as the PKGBUILDs don't take up any space, but the built packages and source files will.

Never had an issue doing this, and sticking with pacman (and following the recommendations) really does reduce the likelihood of issues.


Ryzen 7 9850X3D | AMD 7800XT | KDE Plasma

Offline

#8 2024-09-16 08:58:28

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 322
Website

Re: Migrate from paru to manual

Thank you, that sounds like a good idea. I think I still have many things to learn with doing it this way, but it might be worth it in the long run


Rlu: 222126

Offline

#9 2024-09-16 11:09:52

cryptearth
Member
Registered: 2024-02-03
Posts: 2,167

Re: Migrate from paru to manual

currently my list is quite short:

[main@main ~]$ yay -Qm
amd-vulkan-prefixes 2-1
amdgpu-pro-oglp 24.10_1787253-1
amdgpu_top-bin 0.9.2-1
amf-amdgpu-pro 24.10_1787253-1
clean-chroot-manager 2.228-1
fan2go-git 0.8.0.r17.gf8735f5-1
furmark 2.3.0.0-1
heroic-games-launcher-bin 2.15.1-1
icaclient 24.5.0.76-1
lib32-amdgpu-pro-oglp 24.10_1787253-1
lib32-gperftools 2.15-1
lib32-vulkan-amdgpu-pro 24.10_1787253-1
minecraft-launcher 1:1.0.1221-3
nct6687d-dkms-git r104.0ee35ed-1
ocl-icd-choose 1-1
protontricks 1.11.1-2
protonup-qt 2.10.2-2
python-inputs 0.5-4
python-libusb-package 1.0.26.2-1
python-steam-solstice 1.6.1-1
python-vdf-solstice 3.5-1
steamcmd latest-5
vulkan-amdgpu-pro 24.10_1787253-1
wimboot-bin 2.7.6-2
wol-systemd 20240304-1
yay 12.3.5-2
zfs-linux 2.2.6_6.10.10.arch1.1-1
zfs-linux-headers 2.2.6_6.10.10.arch1.1-1
zfs-utils 2.2.6-1

from those I manage ZFS myself as the current maintainer is a bit behind schedule and the one actual important is icaclient for citrix for working from homeoffice
most of the other stuff I think I could get away with either remove completely (fun fact: yes, I do need the amd pro driver as for some reason part of it is required for the teamred cryptominer) or manage myself like Heroic or Minecraft
actually I could cut it down to just Heroic, Minecraft, Citrix and clean-chroot-manager for building ZFS - both Heroic and Minecraft usually greet you with a popup for new updates - and Citrix often either work anyway or it, too, gives you a popup about version mismatch
anyway I do like taking advantage of simple wrappers like yay and paru - but also stuff like aurutils which provide a local repo they manage is still something I can handle as the required learning curve isn't that steep

as for going full manual: as noted in my Linux From Scratch summary: I've learned that one of the most important tools of a good modern distribution is a powerfull package management - and seen from that every major base-distribution has a form of that:
Arch - AUR
SuSE - OBS/community repos
Debian - community repos
doing all that "by hand" is somewhat like "the old caveman days of Unix with configure, make, make install"

Offline

#10 2024-09-16 11:14:05

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 322
Website

Re: Migrate from paru to manual

I actually did not have multilib enabled after the pacman update. My list is actually

archnews2
auracle-git
betterbird-bin
brother-dcp-l2530dw
brscan4
bsdmainutils
devilspie2
downgrade
dupeguru
duplicati-beta-bin
floorp-bin
geany-themes
get_iplayer
google-chrome
guayadeque
imagy-xfce4
jmtpfs
libnm-iwd
masterpdfeditor-free
mintstick
mod_fcgid
networkmanager-iwd
paccache-hook
perl-mojolicious
plymouth-theme-hud-git
popsicle-bin
rtl8821au-dkms-git
slrn
ttf-ms-fonts
tuxedo-control-center-bin
tuxedo-drivers-dkms
upd72020x-fw
winegui-bin
xfce4-docklike-plugin
xfce4-kbdleds-plugin
xnviewmp

Rlu: 222126

Offline

#11 2024-09-17 16:23:07

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 322
Website

Re: Migrate from paru to manual

Can someone who is more used to this take a look at my script please? It does work and seems to give the details I need. Also I can stop and manually check before installing.

#!/bin/bash
username=$(whoami)
aurdir=/home/$username/aur

if [[ $(auracle outdated) ]]; then
cd $aurdir
echo "Updating packages"
auracle update
cd $(auracle update | awk '{print $NF}')
echo "Building package"
makepkg -s
package=$(ls -rt *zst | tail --lines=1)
echo "Installing $package"
sudo pacman -U $package
else
    echo "No updates found"
fi

exit

Last edited by SimonJ (2024-09-17 16:37:16)


Rlu: 222126

Offline

#12 2024-09-17 16:46:21

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 274

Re: Migrate from paru to manual

I would say you're missing a cleanup routine.

If you look at the file sizes of the cloned repos from the AUR they're tiny. But when you run makepkg they'll download sources and produce build files. linux-mainline repo is 1.5MB, but will be several GB in size when its done building. You don't need to keep that stuff.

So I would run:
git clean -dfx
git reset --hard HEAD

Sometimes even that doesn't remove things, I've seen certain directories not be removed by either of those commands and require manual deletion. Not sure if yay cleans this stuff up either to be fair.

But yeah, worth cleaning up the leftover files from building because you ain't going to need them again.


Ryzen 7 9850X3D | AMD 7800XT | KDE Plasma

Offline

#13 2024-09-17 16:47:19

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 322
Website

Re: Migrate from paru to manual

Perfect thank you, I had not even thought of that.


Rlu: 222126

Offline

Board footer

Powered by FluxBB