# Arch Linux

## adjusting screen brightness

brightness up

```
sudo brillo -A 10
```

brightness down

```
sudo brillo -U 10
```

## check installed fonts

```shell
fc-list
```

## `yay`

\*\* update packages \*\*

```shell
yay -Syyu
```

**update single package**

````shell
yay -S <package name>
``

## `pacman`

**install package**

```shell
pacman -S <package name>
``
**update single package**

```shell
pacman -S <package name>
``

***update all installed packages**

```shell
pacman -Syu
`*update all installed packages**

```shell
pacman -Syu
````

**Clear pacman cache**

```shell
sudo pacman -Scc
```

**uninstall package**

```shell
sudo pacman -Rs
```

**remove unused packages**

```shell
sudo pacman -Rns (pacman -Qqtd)
```

***

## Using `debtap` to install a package

When there is no AUR package for something you are trying to install, you should try this method.

**install `debtap`**

```shell
yay -S debtap
```

**update the repos**

```shell
sudo debtap -u
```

**convert the `.deb` file**

```shell
sudo debtap filename.deb
```

**install the converted `.tar.zst` file**

```shell
sudo pacman -U filename.tar.zst
```

***

\*\*clean the cache in `~/home` directory

```shell
sudo du -sh ~/.cache/
```

my results: ![num3-clean-cache](https://github.com/djsnipa1/cheatsheets/blob/master/images/num3-clean-cache.png)

![num3-clean-cache](https://github.com/djsnipa1/cheatsheets/blob/assets/images/num3-clean-cache.png)

sha for image above: `abd33a8f83306b93bb69a767d0bf0ed4e2963843`

![num3-clean-cache](https://github.com/djsnipa1/cheatsheets/blob/master/assets/images/num3-clean-cache.png?raw=true)

## ![num3-clean-cache](https://github.com/djsnipa1/cheatsheets/assets/images/num3-clean-cache.png?raw=true)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chadboyce.gitbook.io/notes/arch_linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
