Equivalent of these commands in the following distros
9,354
Check this page, you will get all details .
Fedora/RHEL/CentOS:
yum install/remove/search/update package
OpenSuse:
yast2 --install/--remove <package_name>
Or
zypper # to print the list of available global options and commands
zypper help search # to print help for the search command
zypper lp # to see what patch updates are needed
zypper patch # to apply the needed patches
zypper se sqlite # to search for sqlite
zypper rm sqlite2 # to remove sqlite2
zypper in sqlite3 # to install sqlite3
zypper in yast* # to install all packages matching 'yast*'
zypper up # to update all installed packages with newer versions, where possible
Gentoo:
emerge package # Install
emerge -C package # Remove a package
emerge -s keyword # Search for packages (package names only)
emerge -u package # update the package
Arch
pacman -U package.pkg.tar.xz # Local package install
pacman -Syy # Refresh package databases
pacman -Syu # Update installed packages
pacman -S package # Install package
pacman -R package # Remove package
Slackware
Check man pages of Pkgtools/Slackpkg
Related videos on Youtube
Author by
WinMacLinUser
Updated on September 18, 2022Comments
-
WinMacLinUser over 1 year
These commands:
dpkg -i apt-get install apt-get update apt-get remove apt-get dist-upgrade apt-get purge
in these distros: Opensuse, Fedora, Gentoo, Arch, Slackware.
-
Admin almost 11 yearsAs a heads up, the package managers for all of the distributions you listed are Zypper, Yum, Emerge, Pacman, and Pkgtools/Slackpkg, if you're inclined to look at their manual pages. Are you looking to switch from Ubuntu or something like that?
-
WinMacLinUser almost 11 yearsyes, not exactly that, there are many distros based on those that look good to me, Ubuntu has gotten really worse, I'm not gonna use anything ubuntu based when I buy a new machine to install linux on.
-
Admin almost 11 yearsI'm using Arch Linux now (after coming from Ubuntu a couple years ago), and I'm extremely happy with it, if you're looking for recommendations. There's a bit of a learning curve, and it requires somwhat robust command-line familiarity, but everything is documented incredibly well at wiki.archlinux.org.
-
tripleee almost 11 yearsThere are many Debian-based distros which are not Ubuntu, all of which use Apt.
-
Severus Tux over 7 yearsHere is everything you need : wiki.archlinux.org/index.php/Pacman/Rosetta
-
-
WinMacLinUser almost 11 yearsThanks, how do i update the repositories, i.e. equivalent of
apt-get update
-
Rahul Patil almost 11 years
reposync
is used to synchronize a remote YUM repository with a local directory using yum to get the packages, you need to installyum-utils
package for this command -
WinMacLinUser almost 11 yearsThanks, I am now installing the Arch-based Manjaro to give it a try, the cLI installer is easy for me to navigate, again, thank you guys!