Comandi dnf per distro basate su Redhat
Primo appunto: distro basate su Redhat sono, per esempio:
- Fedora
- CentOS
- Redhat
e altre che non mi vengono in mente.
Intanto una lista di comandi utili:
+---------------------+-------------------------------------------------------------------------------------------+ | Command | Description | +---------------------+-------------------------------------------------------------------------------------------+ |repolist | Display the configured software repositories | |install | Install a single or multiple packages on your system | |upgrade | Upgrade a package or packages on your system | |upgrade-minimal | Upgrade, but only 'newest' package match which fixes a problem that affects your system | |list | List a package or groups of packages | |info | Display details about a package or group of packages | |updateinfo | Display advisories about packages | |search | Search package details for the given string | |check-update | Check for available package upgrades | |remove | Remove a package or packages from your system | |reinstall | Reinstall a package | |downgrade | Downgrade a package | |autoremove | Remove all unneeded packages that were originally installed as dependencies | |distro-sync | Synchronize installed packages to the latest available versions | |makecache | Generate the metadata cache | |repository-packages | Run commands on top of all packages in given repository | |provides | Find what package provides the given value | |group | Display, or use, the groups information | |history | Display, or use, the transaction history | |clean | Remove cached data | |help | Display a helpful usage message | +---------------------+-------------------------------------------------------------------------------------------+
La sintassi generale è questa:
dnf [Option] [Command] [Package_Name]
Naturalmente con dnf, bisogna lavorare con l'utente root quindi prima si da il comando sudo oppure su.
La directory generale si trova su:
/etc/dnf/dnf.conf
Mentre i Repository sono su:
/etc/yum.repos.d/
La Cache è:
/var/cache/dnf
Per avere la lista dei repo, si può dare il comando:
dnf repolist
È possibile avere la lista dei soli repo attivi:
dnf repolist enabled
oppure
dnf repolist --enabled
e disattivi
dnf repolist disabled oppure dnf repolist --disabled
Per visualizzare informazioni dettagliate su ciascuno dei repository, basta aggiungere l'opzione -v
dnf repolist -v
In seguito, altri comandi, su un altro articolo e... con clama.
Commenti