Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Sysget in linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to use Sysget in linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Install Sysget

Installing Sysget is easy. Go to the release page and download the Sysget binaries for * * and install as shown below. At the time of writing this guide, the Sysget version is 1.2.

Usage of $sudo wget-O / usr/local/bin/sysget https://github.com/emilengler/sysget/releases/download/v1.2/sysget$ sudo mkdir-p / usr/local/share/sysget$ sudo chmod axix / usr/local/bin/sysget

The Sysget command is roughly the same as the APT package manager, so it should be suitable for beginners.

When you run Sysget * * times, you will be asked to select the package manager you want to use. Since I am in Ubuntu, I chose apt-get.

You must choose the correct package manager based on the running distribution. For example, if you are using Arch Linux, select pacman. For CentOS, select yum. For FreeBSD, select pkg. The list of currently supported package managers is:

Hongmeng official Strategic Cooperation to build HarmonyOS Technology Community

Apt-get (Debian)

Xbps (Void)

Dnf (Fedora)

Yum (Enterprise Linux/Legacy Fedora)

Zypper (OpenSUSE)

Eopkg (Solus)

Pacman (Arch)

Emerge (Gentoo)

Pkg (FreeBSD)

Chromebrew (ChromeOS)

Homebrew (Mac OS)

Nix (Nix OS)

Snap (Independent)

Npm (Javascript, Global)

If you assign the wrong package manager, you can set up a new package manager using the following command:

$sudo sysget set yumPackage manager changed to yum

Just make sure you choose the local package manager.

Now you can perform package management operations as if you were using the native package manager.

To install a package, such as Emacs, simply run:

$sudo sysget install emacs

The above command invokes the native package manager ("apt-get" in my case) and installs the given package.

Similarly, to delete a package, simply run:

$sudo sysget remove emacs

Update the software repository (database):

$sudo sysget update

Search for specific packages:

$sudo sysget search emacs

Upgrade a single package:

$sudo sysget upgrade emacs

Upgrade all packages:

$sudo sysget upgrade

Remove obsolete packages:

$sudo sysget autoremove

Clean the cache of the package manager:

$sudo sysget clean

For more details, see the help section:

$sysget helpHelp of sysgetsysget [OPTION] [ARGUMENT] search [query] search for a package in the resporitoriesinstall [package] install a package from the reposremove [package] removes a packageautoremove removes not needed packages (orphans) update update the databaseupgrade do a system upgradeupgrade [package] upgrade a specific packageclean clean the download cacheset [NEW MANAGER] set a new package manager

Keep in mind that all package managers in different Linux distributions have the same Sysget syntax. You don't need to remember the commands of each package manager.

Again, I must tell you that Sysget is not a replacement for the package manager. It is just a wrapper for the popular package manager in Unix-like systems, and it only performs basic package management operations.

Sysget may be useful for novices and distribution harvesters who don't want to learn the new commands for different package managers.

The above is all the content of the article "how to use Sysget in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report