User Tools

Site Tools


pacman

This is an old revision of the document!


Pacman

Pacman is the package management tool that comes with Arch Linux.

It is very important to change the progress bar to look like Pacman eating dots. You do this by editing /etc/pacman.conf, adding the line 'ILoveCandy' to the [options] > # Misc options section. Make sure you have colour enabled too.

Usage

I'll leave out the basics like -Syu, -S, -Ss and -Rsn1)); here're some ones I don't use as much / forget, but are real useful.

-S [group name]-{[name1],name2],[etc]}

-Qs

-Ql

-Qo [/path/to/file_name]

Q does stuff on installed packages, you can replace with F to do the same actions on stuff you haven't installed.

I also have an alias for my helper, so I type pact -[flags] to do stuff.

Fixes

AUR

.SRCINFO and PKGBUILD mismatch

Errors like

:: [package name] package(s) failed to install.
:: ensure package version does not mismatch between .SRCINFO and PKGBUILD
:: ensure package name has a VCS suffix if this is a devel package

Are are pacaur problem, and can get gotten round by installing manually, or by using another helper

trizen and yay seem to be the helpers to go for now.

Converting Packages

DEB

Debtap

Can convert a .deb package into a PKGBUILD with one tool. Real simple to use.

Usage:

  1. # debtap -u when you first run it to get the database up to date
  2. $ debtap -p [deb file] to make the PKGBUILD
deb2targz

RPM

Free Space

To clear Pacman's cache pacman -Sc — you can use paccache -rk 2 to delete everything except the last two versions of a package, which is a good idea. paccache -ruk0 will remove everything for packages that are no longer installed.

To find orphan packages pacman -Qdt

Missing Files in Pacman Database

Just ran into a little problem where a disk error took out a bit of my pacman database.

This was giving me an error about a desc file every time I ran pacman, and blocking some parts of the process. using –force to reinstall the package didn't help, and I also was unable to remove it.

Thanks to this post I solved it by deleting the packages directory in /var/lib/pacman/local, and reinstalled the database only with pacman -U –dbonly [package].pkg.tar.xz

Speeding Up Package Building

See Also

1)
But hey, in case you didn't know what the s and n are doing there: s include deps. not needed by anything else, n also ditch config. files (but not the ones in your home directory
pacman.1603673033.txt.gz · Last modified: 2020/10/26 11:43 by rjt