Want to install packages on Curvation Linux but do not know how? A lot of people face this problem when they showtime drift from Debian-based distributions to Curvation. However, y'all can easily manage packages on your Arch-based system using package managers.

Pacman is the default parcel manager that comes pre-installed in every Arch distribution. But still, in that location'due south a need for other package managers as Pacman doesn't support packages from the Curvation User Repository.

Package Managers in Arch Linux

Although Arch Linux comes with Pacman as the default packet manager, you can install other parcel managers such every bit Yay. Unlike Pacman, these package managers allow y'all to add together new packages from the official Arch repository and the AUR (Arch User Repository).

While other package managers have been used over the years, examples such as Yaourt and Aurman are no longer maintained. Consequently, Pacman and Yay are safer and more reliable package managers to rely on in Arch Linux.

AUR is a community-organized repository that provides users with a platform to share packages adult by them. If you are a developer, you tin add packages to the AUR, and other users can install them on their system with ease.

1. Pacman

As mentioned above, every Arch organization comes with Pacman equally its default package manager. The most notable feature of Pacman is that it regularly syncs your system'southward packages with the master server, and in turn, keeps your organization up to engagement.

2. Yay

As the developers of Yaourt and Aurman won't be releasing whatever updates afterwards the discontinuation, Arch users have started using Yay to add packages from the AUR. The main aim of Yay was to minimize user input and to provide a Pacman-like interface.

You won't be able to install Yay using Pacman, as it does not support calculation packages from the Curvation User Repository direct. Therefore, you will have to install the Yay package director manually using its Git repository. Here's how to install it on your system.

Stride ane: You lot volition require git to clone the yay repository.

          pacman -S --needed git base of operations-devel        

Stride 2: Clone the repository to your local storage.

          git clone https://aur.archlinux.org/yay-git.git        

Stride 3: Modify the permissions of the binder.

          chmod 777 /yay-git        

Step iv: Navigate to the directory where you lot cloned the repository.

          cd yay-git

Pace five: Use themakepkg command to build the package. Make sure that yous do not run the following control equally the root user, otherwise, information technology volition raise an error.

          makepkg -si        

Updating and Upgrading Packages

If yous have just installed Arch Linux, then before you can add or remove packages, yous will have to sync your system with the master servers by updating your local packet list.

Then, y'all tin can easily upgrade all of your packages to the latest version by downloading the files from official servers.

Using Pacman

To update your parcel list using Pacman, use the -Sy flag with the control.

          sudo pacman -Sy        

Subsequently synchronizing your organization'south bundle listing with the master servers, you need to upgrade the packages. Utilize the -Syu flag to practice the same. This command can take some time depending on the listing of the packages and your network connectivity.

          sudo pacman -Syu        

You can save the effort of typing both of these commands by combining them using the -Syyu flag. Pacman will get-go downloading the latest packages automatically after updating the package list.

          sudo pacman -Syyu        

Using Yay

The Yay packet manager allows y'all to update and upgrade your packages efficiently using your final. To practise this, just use the -Syu flag with the yay control.

          sudo yay -Syu        

Adding Packages

Calculation packages is piece of cake once you know which commands to execute. All you accept to do is type the bundle managing director commands in the terminal.

Flathub and Snap Store are two great GUI applications that you tin can use to install software and applications on your Linux auto.

Install Packages With Pacman

Pacman uses the TAR file extension to bundle applications. Information technology works efficiently with the Curvation Linux system architecture. To add a package, you have to employ the -Southward flag with the default control as follows.

          sudo pacman -S packagename        

For example,

          sudo pacman -S cmatrix        

To install multiple packages at once, type in the name of all the packages divided by the space graphic symbol.

          sudo pacman -South cmatrix vlc python        

You tin also go information about packages after installing them. The output provides details about the name, version, compages, and license of the package. To practise this, replace the -South flag with -Qi in the default pacman command.

          pacman -Qi cmatrix        

Install Packages With Yay

The syntax of the Yay install command is pretty like to that of Pacman. To install a package using the Yay package manager, just use the -Due south flag with the default command.

          yay -S packagename        

Removing Packages in Arch

Curvation Linux gives yous the command to remove packages one time yous don't demand them, and that's one of the many reasons why y'all should install Curvation Linux. Yous can remove about any package from your system if you have the authority, of course. Let's see how y'all tin can delete a packet on Arch Linux.

Remove Packages With Pacman

Removing a package is piece of cake as well. All you have to exercise is apply -R instead of the -Southward flag in the default pacman command.

          sudo pacman -R cmatrix        

If the package is non present in your system, yous will receive an error output that will state "error: target non constitute: packagename".

Remove Packages With Yay

To remove packages using Yay, add together the -R flag to the default yay command. Yous can too use the -Rns flag to remove all unnecessary dependencies from your arrangement.

          yay -R cmatrix
yay -Rns cmatrix

If you want to remove the packages that your system doesn't need, apply the -Yc flag with the command.

          yay -Yc        

Managing Packages on Arch Linux

There are multiple ways to add together and remove packages on an Arch-based Linux distribution. You lot can utilise packet managers such as Pacman, Yaourt, and Yay. While some parcel managers allow the download of packages from the Arch User Repository, others like Pacman exercise not support the AUR.

If yous are non a fan of package managers, yous tin can always download the packages you lot desire manually. Several websites are available on the internet that provide TAR, RPM, and DEB packages to Linux users.

8 Sites for Downloading DEB or RPM Linux Apps

Looking for Linux apps? Rather than install from terminal, you tin can download Linux apps in DEB and RPM format from these websites.

Read Next

Nigh The Author