HomeinetArch Linux, Debian, Fedora openSUSE, & Ubuntu basic terminal commands

Arch Linux, Debian, Fedora openSUSE, & Ubuntu basic terminal commands

Below we will see together some of the commands used by the terminal, a basic Linux tool. Although many people think that the console is only for advanced users, with the following lists you don't need to be advanced. Let's not forget that even advanced people started somewhere..terminal

The distributions we will be working with are: Arch Linux, Debian, Fedora openSUSE, and Ubuntu. Open a terminal and go to

Package manager

Zypper can be used either by writing the full command or by abbreviation. For example, the zypper is the same as the zypper in and the zypper update is the same as the zypper up:

 

Ubuntu/Debian commandopenSUSE command
apt-get updatezypper refresh
apt-get -u upgradezypper update
apt-get -u dist-upgradezypper dist-upgrade
apt-get install clementinezypper install clementine
apt-get remove clementinezypper remove clementine
apt-cache search clementinezypper search clementine
apt-cache showpkg clementinezypper info clementine
dpkg -lrpm -qa
dpkg -Lrpm -ql
dpkg -srpm -qi
dpkg -Srpm -qf
adding apt repository in /etc/apt/sources.listzypper addrepo repository name
apt-get moozypper moo

 

apt-file searchzypper se
apt-get autoremovezypper rm --clean-deps package (cleans only the dependencies of a specified package)
apt-get cleanzypper clean
apt-get source packagezypper source-install package (also installs dependencies)
(using chroot)zypper --root location – works in a different root
cat /var/log/dpkg.logcat /var/log/zypp/history
apt package lockszypper addlock/listlocks/removelock
Installing recommended packageszypper install-new-recommends

 

Fedora

The Fedora distribution is very close to the openSUSE distribution. Both use RPM files and in both one can use the yum command if one wants, but if you want to be fast you should try zypper! Both distributions use systemd.

Package manager

Although yum can be used in both, the main differences between the two package managers are as follows:

Fedora commands that start with yum in the latest versions of Fedora (Korora) may or may not work. So if you get the following message in the terminal instead of yum use dnf.

Yum command has been deprecated, use dnf instead.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run 'dnf migrate'
FedoraopenSUSE
yum makecachezypper refresh
yum updatezypper update
yum install clementinezypper install clementine
yum remove clementinezypper remove clementine
yum search clementinezypper search clementine
yum clean allzypper clean

Arch Linux

The Arch Linux distribution is known for its simplicity and rolling updates. The distribution has adopted systemd, so the commands are the same.

Package manager

Although yum can be used in both, the main differences between the two package managers are as follows:

Arch commandopenSUSE command
pacman -Syyzypper refresh
pacman-Syuzypper dist-upgrade
pacman -S clementinezypper install clementine
pacman -R clementinezypper remove clementine
pacman -Rsnc clementinezypper remove –clean-deps clementine
pacman -S clementine (force reinstall)zypper install –force clementine
Pacman -Ss Clementinezypper search clementine
pacman -Swzypper source-install (install source file with its dependencies)
layman -a repositoryzypper ar repository name
Installing recommended packageszypper install-new-recommends

 

From the article by Eustathios Iosifidis.

📧
Subscribe to the SecNews Newsletter

The most important Security & Technology news in your Inbox.

SecNews
SecNewshttps://www.secnews.gr
In a world without fences and walls, who needs Gates and Windows

SEARCH

FOLLOW US

📧
Newsletter SecNews
The most important Security & Technology news in your inbox.

LIVE NEWS