Package manager using pacman in RG353P - leonkasovan/RG353P GitHub Wiki

Manual pacman: https://wiki.archlinux.org/title/Pacman
Create Package: https://wiki.batocera.org/create_pacman_package

Setup pacman

  1. Check configuration: pacman-conf
  2. Edit file with nano /etc/pacman.conf
    Change Architecture = rg353 to Architecture = aarch64
    Add SigLevel = Never
    Remove this lines
[anbernic]
Server            = https://store.anbernic.org/
  1. Edit file with nano /userdata/system/pacman/pacman.conf
[batocera]
Server = https://store.batocera.org/

[community]
Server = http://mirror.archlinuxarm.org/aarch64/community/

[core]
Server = http://mirror.archlinuxarm.org/aarch64/core/

[extra]
Server = http://mirror.archlinuxarm.org/aarch64/extra/
  1. Sync pacman database
    Synchronize and refresh the package databases: pacman -Sy
    Synchronize content files database: pacman -Fy

  2. pacman-key --init


Search package

Search package contains name psmisc: pacman -Ss psmisc

core/psmisc 23.6-1 [installed]
    Miscellaneous procfs tools
core/psmisc-debug 23.6-1
    Detached debugging symbols for psmisc

Search file contains name pstree: pacman -F pstree

core/psmisc 23.6-1 [installed]
    usr/bin/pstree

Download and install package

Download and install package with its depends: pacman -S psmisc
Download and install package without its depends: pacman -Sdd psmisc
Download and install package without its depends and overwrite existing file: pacman -Sdd --overwrite psmisc
Download (no install) package without its depends: pacman -Sddw psmisc check in /userdata/system/pacman/pkg/
Install local package: pacman -U luax-5.1.5-1-aarch64.pkg.tar.zst
Install local package and overwrite existing file: pacman -U --overwrite /usr/bin/killall mini-tools-1.0.1-1-aarch64.pkg.tar.zst

Misc

After installing packages, execute command: anbernic-save-overlay for saving permanent changes in system