DNF5-ALIASES(7)
π dnf5-aliases π
okay so this is the dnf5-aliases(7) page from the dnf5 manual, and bestie, it's a whole thing β it's the glow-up guide for making your own custom shortcuts for dnf5 commands and options. sit down, grab a boba, we're doing this together π«Ά
β¨ NAME β¨
dnf5-aliases β Aliases for command line arguments
πΈ DESCRIPTION πΈ
so the vibe is: you can define your own custom aliases, and then use them as dnf commands or options to shorten those long, exhausting command-and-option sequences. no more typing the whole novel, just the sparknotes version π
the aliases are configured in TOML format, and the config files get loaded from these drop-in directories:
/usr/share/dnf5/aliases.d//etc/dnf/dnf5-aliases.d/$XDG_CONFIG_HOME/dnf5/aliases.d/
π Syntax: π
the config file must start with the version attribute set to a required version, like this:
version = '1.1'
every alias lives in its own separate section, defined with key = value pairs, like so:
['in']
type = 'command'
attached_command = 'install'
descr.C = "Alias for 'install'"
descr.cs_CZ = "Alias pro 'install'"
the section name is what uniquely identifies the alias. it's shaped like a path β one or more strings separated by dots β and that path defines the scope of the alias. for example, the string "group.list.in" would identify an alias that's only usable within the scope of the group list subcommand. it's giving nesting doll energy πͺ
there are these types of aliases:
commandcloned_named_argnamed_arggroup
π Type: command π
the command alias defines an alias for a command. periodt.
Keys:
typeβ Must have valuecommand.attached_commandβ Path to a command for which this alias is defined.descr.<locale>β Description that will be shown in help.descr.Cis used if a description for the appropriate locale is not found. Added in config file version1.1.descrβ Description that will be shown in help. Deprecated in version1.1, but remains backward compatible. Does not support locales.group_idβ A group this alias is part of if any.completeβ Whether bash autocompletion should be used for this alias, default isfalse.required_valuesβ Values (positional arguments) consumed by the command alias. The format is an array of tables; each must include eithervalue_help.<locale>for the active locale orvalue_help.C, and may optionally includedescr.<locale>. The default is an empty array. Added in config file version1.1.attached_named_argsβ Options that will be used with the command. The format is an array of tables, each of which must contain anid_pathkey to specify the path to an option, and may contain also avaluekey to specify the value of the option. The value can contain${index}placeholders, which are replaced by values consumed by the command alias (as defined byrequired_values). Command arguments start at index1. Index0refers to the command alias itself. If novaluekey is provided, an empty string will be passed to named arguments that expect a value.
the required keys are type, and attached_command. don't forget or it's gonna be mad at you π
Examples:
- Alias
grouplistforgroup list:
['grouplist']
type = 'command'
attached_command = 'group.list'
descr.C = "Alias for 'group list'"
descr.cs_CZ = "Alias pro 'group list'"
- Alias
group.lsforgroup list:
['group.ls']
type = 'command'
attached_command = 'group.list'
descr.C = "Alias for 'group list'"
descr.cs_CZ = "Alias pro 'group list'"
complete = true
- Alias
list-fedora-allfor--repo=fedora list --showduplicates:
['list-fedora-all']
type = 'command'
attached_command = 'list'
descr.C = "Alias for '--repo=fedora list --showduplicates'"
descr.cs_CZ = "Alias pro '--repo=fedora list --showduplicates'"
complete = true
attached_named_args = [
{ id_path = 'repo', value = 'fedora' },
{ id_path = 'list.showduplicates' }
]
- Alias
whatrequiresforrepoquery --installed --whatrequires=<requires_first_argument>:
['whatrequires']
type = 'command'
attached_command = 'repoquery'
descr = 'Alias for "repoquery --installed --whatrequires=<whatrequires_first_argument>"'
complete = true
[[whatrequires.required_values]]
value_help.C = 'CAPABILITY,...'
descr.C = 'Limit to packages that require any of <capabilities>.'
descr.cs_CZ = 'OmezΓ se na balΓΔky vyΕΎadujΓcΓ nΔco z <capabilities>.'
[[whatrequires.attached_named_args]]
id_path = 'repoquery.installed'
[[whatrequires.attached_named_args]]
id_path = 'repoquery.whatrequires'
value='${1}'
π¦ Type: cloned_named_arg π¦
the cloned_named_arg alias defines another name for a given option. it's basically a nickname, iconic behaviour π
Keys:
typeβ Must have valuecloned_named_arg.long_nameβ Name of the alias option.short_nameβ One-letter shortcut of the name.sourceβ Path to the option for which this alias is defined.group_idβ A group this alias is part of if any.completeβ Whether bash autocompletion should be used for this alias, default isfalse.
the required keys are type, either long_name or short_name, and source.
Examples:
- Alias
--nobestfor--no-best:
['nobest']
type = 'cloned_named_arg'
long_name = 'nobest'
source = 'no-best'
- Alias
repoquery --listorrepoquery -lforrepoquery --files:
['repoquery.list']
type = 'cloned_named_arg'
long_name = 'list'
short_name = 'l'
source = 'repoquery.files'
π§ Type: named_arg π§
the named_arg defines an alias that can replace multiple options and can define a value for each. multitasking queen π
Keys:
typeβ Must have valuenamed_arg.long_nameβ Name of the alias option.short_nameβ One-letter shortcut of the name.descr.<locale>β Description that will be shown in help.descr.Cis used if a description for the appropriate locale is not found. Added in config file version1.1.descrβ Description that will be shown in help. Deprecated in version1.1, but remains backward compatible. Does not support locales.has_valueβ Whether the option requires a value. The value is then substituted for${}strings in the values ofattached_named_args. Default isfalse.value_help.<locale>β The string shown in help for the value (e.g.CONFIG_FILE_PATHfor--config=CONFIG_FILE_PATH).value_help.Cis used if a string for the appropriate locale is not found. Added in config file version1.1.value_helpβ The string shown in help for the value (e.g.CONFIG_FILE_PATHfor--config=CONFIG_FILE_PATH). Deprecated in version1.1, but remains backward compatible. Does not support locales.const_valueβ Default constant value (specified only if the alias does not have a value on the command line). The value is then substituted for${}strings in the values ofattached_named_args.group_idβ A group this alias is part of if any.completeβ Whether bash autocompletion should be used for this alias, default isfalse.attached_named_argsβ Options that will be used. The format is an array of inline tables, each of which must contain anid_pathkey to specify the path to an option, and may contain also avaluekey to specify the value of the option.
the required keys are type, and either long_name or short_name.
Examples:
- Alias
list --all-availableforlist --showduplicates --available:
['list.all-available']
type = 'named_arg'
long_name = 'all-available'
attached_named_args = [
{ id_path = 'list.showduplicates' },
{ id_path = 'list.available' }
]
- Alias
download --dest=DESTDIRfordownload --destdir=DESTDIR:
['download.dest']
type = 'named_arg'
long_name = 'dest'
has_value = true
value_help.C = 'DESTDIR'
attached_named_args = [
{ id_path = 'download.destdir' }
]
- Alias
--settsflags=TS_FLAGSfor--setopt=tsflags=TS_FLAGS:
['settsflags']
type = 'named_arg'
long_name = 'settsflags'
descr.C = 'Set transaction flags'
descr.cs_CZ = 'Nastavit parametry transakce'
has_value = true
value_help.C = 'TS_FLAGS'
attached_named_args = [
{ id_path = 'setopt', value = 'tsflags=${}' }
]
π Type: group π
the group defines a group for multiple commands or options. found family for aliases π«Ά
Required keys:
typeβ Must have valuegroup.header.<locale>β The header of the group as will be shown in help.header.Cis used if a header for the appropriate locale is not found. Added in config file version1.1.headerβ The header of the group as will be shown in help. Deprecated in version1.1, but remains backward compatible. Does not support locales.
the required keys are type and header.
the aliases get added to the group using the group_id key in their respective sections. that's the whole glue bestie β¨
Examples:
- Group
query-aliasesfor subcommandrepocontaining aliasesrepo.lsandrepo.if:
['repo.query-aliases']
type = 'group'
header.C = 'Query Aliases:'
header.cs_CZ = 'Zkratky pro dotazy:'
['repo.ls']
type = 'command'
attached_command = 'repo.list'
descr.C = "Alias for 'repo list'"
descr.cs_CZ = "Alias pro 'repo list'"
group_id = 'query-aliases'
['repo.if']
type = 'command'
attached_command = 'repo.info'
descr.C = "Alias for 'repo info'"
descr.cs_CZ = "Alias pro 'repo info'"
group_id = 'query-aliases'
okay that's the first half of the tea, bestie β there's more coming, so stay tuned πβ¨
π AUTHOR π
Bestie, who do we thank for this masterpiece? Check AUTHORS.md in the dnf5 source distribution β the whole crew is in there, and they ate. π
π COPYRIGHT π
Copyright belongs to the Contributors to the dnf5 project. That's the whole squad, no cap. π«Ά
And that's the page, fr fr β you made it to the end like the main character you are. πβ¨
This one's from the dnf5 set, source/version tag DNF5-ALIASES(7), dated Sep 24, 2026 β iconic, timeless, lowkey historic. π
Now go forth and slay those aliases. Periodt. ππ¦
π¦ where this page comes from
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms