os:arch

ArchLinux

yay:

# installation
$ sudo git clone https://aur.archlinux.org/yay-git.git
$ cd yay
$ pacman -S binutils make gcc
$ makepkg -si
# sync
$ yay -Sy
# install package
$ yay -S

pacman:

# remove package
$ pacman -R
# install package
$ pacman -S
# search package
$ pacman -Ss
# install from aur
$ baph -i
# downgrading
$ sudo pacman -U /var/cache/pacman/pkg/*.pkg.tar.zst
# updating keys
$ sudo pacman-key --refresh-keys --keyserver keyserver.ubuntu.com
# receive keys
$ gpg --keyserver keyserver.ubuntu.com --recv-keys EC3CBE7F607D11E663149E811D1F0DC78F173680

audio:

$ pacmd
	stat
		Memory blocks currently allocated: 96, size: 213.3 KiB.
		Memory blocks allocated during the whole lifetime: 4435479, size: 1.0 GiB.
		Memory blocks imported from other processes: 3, size: 19.7 KiB.
		Memory blocks exported to other processes: 127, size: 10.0 KiB.
		Total sample cache size: 11.5 KiB.
		Default sample spec: s16le 2ch 44100Hz
		Default channel map: front-left,front-right
		Default sink name: alsa_output.pci-0000_29_00.3.iec958-stereo
		Default source name: alsa_output.pci-0000_29_00.3.iec958-stereo.monitor
		1 sink input(s) available.
	    index: 9
		driver: <protocol-native.c>
		flags: START_CORKED 
		state: CORKED
		sink: 4 <alsa_output.pci-0000_27_00.1.hdmi-stereo-extra3>
		volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
		        balance 0.00
	set-default-sink 4
	list-sinks
		2 sink(s) available.
		* index: 1
			name: <alsa_output.pci-0000_29_00.3.iec958-stereo>
			driver: <module-alsa-card.c>
			flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
			state: SUSPENDED
			suspend cause: IDLE
			priority: 9038
			volume: front-left: 62260 /  95% / -1.34 dB,   front-right: 62260 /  95% / -1.34 dB
			        balance 0.00
			base volume: 65536 / 100% / 0.00 dB
			volume steps: 65537
			muted: no
			current latency: 0.00 ms
			max request: 0 KiB
			max rewind: 0 KiB
			monitor source: 1
			sample spec: s16le 2ch 44100Hz
			channel map: front-left,front-right
			             Stereo
			used by: 0
			linked by: 0
			configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
			card: 1 <alsa_card.pci-0000_29_00.3>
			module: 7
			properties:
				alsa.resolution_bits = "16"
				device.api = "alsa"
				device.class = "sound"
				alsa.class = "generic"
				alsa.subclass = "generic-mix"
				alsa.name = "ALC892 Digital"
				alsa.id = "ALC892 Digital"
				alsa.subdevice = "0"
				alsa.subdevice_name = "subdevice #0"
				alsa.device = "1"
				alsa.card = "1"
				alsa.card_name = "HD-Audio Generic"
				alsa.long_card_name = "HD-Audio Generic at 0xfcd00000 irq 65"
				alsa.driver_name = "snd_hda_intel"
				device.bus_path = "pci-0000:29:00.3"
				sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:29:00.3/sound/card1"
				device.bus = "pci"
				device.vendor.id = "1022"
				device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
				device.product.id = "1457"
				device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
				device.string = "iec958:1"
				device.buffering.buffer_size = "352768"
				device.buffering.fragment_size = "176384"
				device.access_mode = "mmap+timer"
				device.profile.name = "iec958-stereo"
				device.profile.description = "Digital Stereo (IEC958)"
				device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Digital Stereo (IEC958)"
				module-udev-detect.discovered = "1"
				device.icon_name = "audio-card-pci"
			ports:
				iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
					properties:
			active port: <iec958-stereo-output>
	    index: 2
			name: <alsa_output.pci-0000_27_00.1.hdmi-stereo-extra2>
			driver: <module-alsa-card.c>
			flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
			state: SUSPENDED
			suspend cause: IDLE
			priority: 9030
			volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
			        balance 0.00
			base volume: 65536 / 100% / 0.00 dB
			volume steps: 65537
			muted: no
			current latency: 0.00 ms
			max request: 0 KiB
			max rewind: 0 KiB
			monitor source: 2
			sample spec: s16le 2ch 44100Hz
			channel map: front-left,front-right
			             Stereo
			used by: 0
			linked by: 0
			configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
			card: 0 <alsa_card.pci-0000_27_00.1>
			module: 6
			properties:
				alsa.resolution_bits = "16"
				device.api = "alsa"
				device.class = "sound"
				alsa.class = "generic"
				alsa.subclass = "generic-mix"
				alsa.name = "HDMI 2"
				alsa.id = "HDMI 2"
				alsa.subdevice = "0"
				alsa.subdevice_name = "subdevice #0"
				alsa.device = "8"
				alsa.card = "0"
				alsa.card_name = "HDA ATI HDMI"
				alsa.long_card_name = "HDA ATI HDMI at 0xfce60000 irq 63"
				alsa.driver_name = "snd_hda_intel"
				device.bus_path = "pci-0000:27:00.1"
				sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:27:00.1/sound/card0"
				device.bus = "pci"
				device.vendor.id = "1002"
				device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
				device.product.id = "aaf0"
				device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
				device.string = "hdmi:0,2"
				device.buffering.buffer_size = "352768"
				device.buffering.fragment_size = "176384"
				device.access_mode = "mmap+timer"
				device.profile.name = "hdmi-stereo-extra2"
				device.profile.description = "Digital Stereo (HDMI 3)"
				device.description = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 3)"
				module-udev-detect.discovered = "1"
				device.icon_name = "audio-card-pci"
			ports:
				hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
					properties:
						device.icon_name = "video-display"
						device.product.name = "Acer ET322QU"
			active port: <hdmi-output-2>
	set-default-sink 2
	stat
		Memory blocks currently allocated: 93, size: 192.4 KiB.
		Memory blocks allocated during the whole lifetime: 4469221, size: 1.1 GiB.
		Memory blocks imported from other processes: 1, size: 3.7 KiB.
		Memory blocks exported to other processes: 128, size: 10.1 KiB.
		Total sample cache size: 11.5 KiB.
		Default sample spec: s16le 2ch 44100Hz
		Default channel map: front-left,front-right
		Default sink name: alsa_output.pci-0000_27_00.1.hdmi-stereo-extra3
		Default source name: alsa_output.pci-0000_27_00.1.hdmi-stereo-extra3.monitor
$ pavucontrol

updating arch:

$ find /var/cache/pacman/pkg/ -iname "*.part" -delete
$ sudo pacman -Sy archlinux-keyring && sudo pacman -Su

fixing yay error:

(yay: error while loading shared libraries: libalpm.so.12: cannot open shared object file: No such file or directory)
$ cd /tmp && git clone 'https://aur.archlinux.org/yay.git' && cd /tmp/yay && makepkg -si && cd ~ && rm -rf /tmp/yay/

changing shell:

(if you can't press up or down keys because shell is sh instead of bash)
$ chsh -s /bin/bash
  • os/arch.txt
  • Last modified: 2023/07/02 17:45
  • by hli