mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-15 16:24:24 +00:00
Flattened the structure of the knowledge base
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
# Linux-related knowledge base
|
||||
|
||||
The documents contained here can only (or mostly) be used on GNU/Linux-based systems.
|
||||
@@ -1,19 +0,0 @@
|
||||
# The APT package manager
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# mark all packages as non-explicitly installed
|
||||
apt-mark auto $(sudo apt-mark showmanual)
|
||||
|
||||
# remove orphaned packages
|
||||
apt autoremove --purge
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [Apt configuration]
|
||||
- [Configuring Apt sources]
|
||||
|
||||
[apt configuration]: https://wiki.debian.org/AptConfiguration
|
||||
[configuring apt sources]: https://wiki.debian.org/SourcesList
|
||||
@@ -1,7 +0,0 @@
|
||||
# Arch linux
|
||||
|
||||
## Further readings
|
||||
|
||||
- [Suspend and hibernate]
|
||||
|
||||
[Suspend and hibernate]: https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate
|
||||
@@ -1,12 +0,0 @@
|
||||
# Debian GNU/Linux
|
||||
|
||||
## Further readings
|
||||
|
||||
- The [APT] package manager
|
||||
- [Dpkg]
|
||||
- [Advice for new users on not breaking their Debian system]
|
||||
|
||||
[apt]: apt.md
|
||||
[dpkg]: dpkg.md
|
||||
|
||||
[advice for new users on not breaking their debian system]: https://wiki.debian.org/DontBreakDebian
|
||||
@@ -1,27 +0,0 @@
|
||||
# Dpkg
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# add an extra architecture
|
||||
dpkg --add-architecture i386
|
||||
|
||||
# list extra architectures
|
||||
dpkg --print-foreign-architectures
|
||||
|
||||
# list available extra architectures
|
||||
dpkg-architecture --list-known
|
||||
|
||||
#list all installed packages of the i386 architecture
|
||||
dpkg --get-selections | grep i386 | awk '{print $1}'
|
||||
|
||||
# remove the i386 architecture
|
||||
apt-get purge $(dpkg --get-selections | grep --color=never i386 | awk '{print $1}')
|
||||
dpkg --remove-architecture i386
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [How to check if dpkg-architecture --list has all the architectures?]
|
||||
|
||||
[how to check if dpkg-architecture --list has all the architectures?]: https://askubuntu.com/questions/852115/how-to-check-if-dpkg-architecture-list-has-all-the-architectures#852120
|
||||
@@ -1,28 +0,0 @@
|
||||
# Flatpak
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# add the `flathub` remote
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
# search for `vscode`
|
||||
flatpak search vscode
|
||||
|
||||
# install `vscode`
|
||||
flatpak install --user flathub com.visualstudio.code-oss
|
||||
|
||||
# uninstall unused packages
|
||||
flatpak uninstall --unused
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [Using Flatpak] getting started guide on the official [documentation]
|
||||
- [How to clean up Flatpak apps to clear disk space]
|
||||
|
||||
[documentation]: https://docs.flatpak.org/en/latest/
|
||||
[using flatpak]: https://docs.flatpak.org/en/latest/using-flatpak.html
|
||||
|
||||
[how to clean up flatpak apps to clear disk space]: https://www.debugpoint.com/2021/10/clean-up-flatpak/
|
||||
@@ -1,31 +0,0 @@
|
||||
# Fwupd
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# display all detected devices
|
||||
fwupdmgr get-devices
|
||||
|
||||
# download the latest metadata from lvfs
|
||||
fwupdmgr refresh
|
||||
|
||||
# display available updates, if present
|
||||
fwupdmgr get-updates
|
||||
|
||||
# download and apply all available updates
|
||||
fwupdmgr update
|
||||
|
||||
# report the status of an update
|
||||
fwupdmgr report-history
|
||||
|
||||
# clear the local history of updates
|
||||
fwupdmgr clear-history
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [Website]
|
||||
- [GitHub] page
|
||||
|
||||
[github]: https://github.com/fwupd/fwupd
|
||||
[website]: https://fwupd.org/
|
||||
@@ -1,17 +0,0 @@
|
||||
# Pamac
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# check if updates are available (in aur too)
|
||||
pamac checkupdates --aur
|
||||
|
||||
# delete all unneded packages and their dependencies from the system
|
||||
pamac remove --no-save --orphans --unneeded
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- Manjaro's [Wiki]
|
||||
|
||||
[wiki]: https://wiki.manjaro.org/index.php/Pamac
|
||||
@@ -1,20 +0,0 @@
|
||||
# The RPM package manager
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# list all installed packages
|
||||
rpm --query --all
|
||||
|
||||
# list files installed by a package
|
||||
rpm --query --list package
|
||||
|
||||
# find the package owning a file
|
||||
rpm --query --file /usr/bin/file
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [How can I list all files which have been installed by an ZYpp/Zypper package?]
|
||||
|
||||
[how can i list all files which have been installed by an zypp/zypper package?]: https://unix.stackexchange.com/questions/162092/how-can-i-list-all-files-which-have-been-installed-by-an-zypp-zypper-package#239944
|
||||
@@ -1,36 +0,0 @@
|
||||
# The Zypper package manager
|
||||
|
||||
SUSE and openSUSE GNU/Linux's package management utility.
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# update the repositories
|
||||
zypper refresh
|
||||
|
||||
# search for a package
|
||||
zypper search nmap
|
||||
|
||||
# install a package
|
||||
zypper install parallel
|
||||
```
|
||||
|
||||
## Gotchas
|
||||
|
||||
Zypper does not have for now a way to list the content of an installed package. Use [rpm] for this:
|
||||
|
||||
```shell
|
||||
sudo rpm --query --list ${PACKAGE_NAME}
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [rpm]
|
||||
|
||||
[rpm]: rpm.md
|
||||
|
||||
## Sources
|
||||
|
||||
- [How can I list all files which have been installed by an ZYpp/Zypper package?]
|
||||
|
||||
[how can i list all files which have been installed by an zypp/zypper package?]: https://unix.stackexchange.com/questions/162092/how-can-i-list-all-files-which-have-been-installed-by-an-zypp-zypper-package#239944
|
||||
Reference in New Issue
Block a user