Skip to content

Pacman

Pacman

Note

yay is deprecated and should be replaced with paru

Hooks

Trigger Command on Upgrade:

[Trigger]
Operation = Upgrade
Type = Package
Target = plex-media-server-plexpass
Target = plex-media-server

[Action]
When = PostTransaction
Exec = /usr/bin/systemctl try-restart plexmediaserver.service

Use in script

yay -Syu --noconfirm

Ignore FS

yay -Syu --overwrite "*"

Find which package a file is from

>>> pacman -Qo /usr/lib/systemd/user/dbus-org.bluez.obex.service
/usr/lib/systemd/user/dbus-org.bluez.obex.service is owned by bluez 5.70-1

Find what files are installed by a package

>>> pacman -Ql bluez
bluez /etc/
bluez /etc/bluetooth/
bluez /etc/bluetooth/main.conf
bluez /usr/
bluez /usr/lib/
bluez /usr/lib/bluetooth/
bluez /usr/lib/bluetooth/bluetooth-meshd
bluez /usr/lib/bluetooth/bluetoothd
bluez /usr/lib/bluetooth/obexd
bluez /usr/lib/modprobe.d/
bluez /usr/lib/modprobe.d/bluetooth-usb.conf
bluez /usr/lib/modules-load.d/
bluez /usr/lib/modules-load.d/bluez.conf
bluez /usr/lib/systemd/
bluez /usr/lib/systemd/system/
bluez /usr/lib/systemd/system/bluetooth-mesh.service
bluez /usr/lib/systemd/system/bluetooth.service
bluez /usr/lib/systemd/user/
bluez /usr/lib/systemd/user/dbus-org.bluez.obex.service
bluez /usr/lib/systemd/user/obex.service
bluez /usr/share/
bluez /usr/share/dbus-1/
bluez /usr/share/dbus-1/services/
bluez /usr/share/dbus-1/services/org.bluez.obex.service
bluez /usr/share/dbus-1/system-services/
bluez /usr/share/dbus-1/system-services/org.bluez.mesh.service
bluez /usr/share/dbus-1/system-services/org.bluez.service
bluez /usr/share/dbus-1/system.d/
bluez /usr/share/dbus-1/system.d/bluetooth-mesh.conf
bluez /usr/share/dbus-1/system.d/bluetooth.conf
bluez /usr/share/doc/
bluez /usr/share/doc/bluez/
bluez /usr/share/doc/bluez/dbus-apis/
bluez /usr/share/doc/bluez/dbus-apis/adapter-api.txt
bluez /usr/share/doc/bluez/dbus-apis/advertising-api.txt
bluez /usr/share/doc/bluez/dbus-apis/agent-api.txt
bluez /usr/share/doc/bluez/dbus-apis/assigned-numbers.txt
bluez /usr/share/doc/bluez/dbus-apis/btsnoop.txt
bluez /usr/share/doc/bluez/dbus-apis/device-api.txt
bluez /usr/share/doc/bluez/dbus-apis/gatt-api.txt
bluez /usr/share/doc/bluez/dbus-apis/health-api.txt
bluez /usr/share/doc/bluez/dbus-apis/input-api.txt
bluez /usr/share/doc/bluez/dbus-apis/mgmt-api.txt
bluez /usr/share/doc/bluez/dbus-apis/network-api.txt
bluez /usr/share/doc/bluez/dbus-apis/obex-agent-api.txt
bluez /usr/share/doc/bluez/dbus-apis/obex-api.txt
bluez /usr/share/doc/bluez/dbus-apis/pics-opp.txt
bluez /usr/share/doc/bluez/dbus-apis/pixit-opp.txt
bluez /usr/share/doc/bluez/dbus-apis/profile-api.txt
bluez /usr/share/doc/bluez/dbus-apis/pts-opp.txt
bluez /usr/share/doc/bluez/dbus-apis/sap-api.txt
bluez /usr/share/doc/bluez/dbus-apis/settings-storage.txt
bluez /usr/share/doc/bluez/dbus-apis/supported-features.txt
bluez /usr/share/doc/bluez/dbus-apis/test-coverage.txt
bluez /usr/share/man/
bluez /usr/share/man/man8/
bluez /usr/share/man/man8/bluetooth-meshd.8.gz
bluez /usr/share/man/man8/bluetoothd.8.gz
bluez /var/
bluez /var/lib/
bluez /var/lib/bluetooth/