Aliases to help use the system and what are some you can't live without?

Hi!

I am quite new to Linux space considering I only started using Linux around 2016. I landed on OpenMandriva due to their dedication to supporting systems in a way that doesn’t seem “invasive”. I am able to use whatever works and not be forced to use what the development team wants me to use.

I have landed on OpenMandriva ROME release and I would like to know if I am understanding updating the system correctly. at least the updates come and apply correcly. I have aliased couple things in my bashrc file too keep my system up to date.

alias sudo='sudo ' # This is to use aliases with sudo
alias vim='nvim' # This is just here to help me use neovim
alias just-update='sudo dnf clean all ; dnf clean all ; dnf repolist && sudo dnf distro-sync --allowerasing && flatpak update' # here to help me keep my system up to date without having to type long strings

I am not sure if these are the way to use these aliases properly.

What are some aliases you use daily and what are some you can’t live without?

@Xcv1007
welcome1

It is normally sufficient to do the following for ROME:

sudo dnf clean all ; sudo dnf repolist ; sudo dnf dsync --refresh --allowerasing

The non-sudo commands help if you want to search the repos as a regular (non-admin) user, but you can also use --refresh for that and it should be fine.

There are a couple commands I use but I don’t really think an alias is needed.

dnf search <package_name> <also_descriptions>:

I know that may seem unclear. Basically, I search for names and other descriptives, but sometimes both.

dnf list <package_name_and_wildcards>:

I typically use this when I know what I am specifically looking for, or after I have found it with search. Wildcards before the package name are sometimes helpful if you don’t want to do a ton of keyboard reaches to type lib64, etc… I will tend to use a * after the name to get any other packages associated with the one I am looking for. list will tell you what is available or what is installed.

To save myself some extra typing and unnecessary privilege escalation, I don’t use sudo for these.

1 Like