Pamac manjaro linux �������

How to Install and Remove Software in Manjaro Linux

Last updated May 21, 2021 By John Paul 27 Comments

Brief: This complete beginner’s guide shows you multiple ways to install and remove software in Manjaro Linux.

There are many people who would like to use Linux instead of Windows but are deterred because they believe in Linux myths such as it is difficult to use. This tutorial will try to overcome that error by showing how easy it is to install and remove software on Linux.

You probably already know by now that I love Manjaro Linux, so in this article, I will be focusing on Manjaro. There is a similar article on managing software in Ubuntu that Ubuntu users can follow.

Since Manjaro is based on Arch Linux, most of this tutorial can also be used for Arch Linux and its derivatives. The methods will be listed from easiest to more advanced.

I am also adding several tricks to make things easier.

For this tutorial, I will be using Manjaro 20 with GNOME and LXQt desktop environments. This tutorial should also work with other desktop environments.

Method 1: Install and Remove Software in Manjaro Linux with Pamac

Here, we’ll be using Pamac to install/remove software in Manjaro Linux.

Install Software in Manjaro Linux with Pamac

Pacman is the package manager created by the Arch team and used by Manjaro. This is probably the easiest way to install the software. We will cover it in depth later on. Right now, we focus on Pamac.

Pamac is a graphical application created to make Pacman easy to use. Like synaptic for apt.

You can either access Pamac by selecting “Add/Remove Software” from the menu or by right clicking the icon in the system tray as shown below.

Pamac allows you to view software already installed, search for new software by name or by category. If you don’t find something you search for, you can also look for it in the Arch User Repository (AUR).

Your application will not be installed until you click “Apply”. You will be prompted to enter your password and after showing you a list of files it will download it will go to work.

It’s optional to click the “right arrow” next to the “Apply” button to see the terminal output.

Enabling AUR and Snap/Flatpak support in Pamac

Enabling the AUR and Snap or Flatpak support takes a couple of extra steps in Pamac. Click the 3 dotted menu in the upper right corner and select “Preferences”. You will be prompted to enter your password.

Now, select the “AUR” tab. Now flip the switch (toggle it on). Now, you will be able to install software from the AUR and keep them up-to-date.

Similarly, you can just head to the Snap and Flatpak options to “Enable Snap support” and “Enable Flatpak support” if you need.

Remove Software in Manjaro Linux with Pamac

Removing software using Pamac is as easy as installing it. All you have to do just click on the “remove” button on the right side of the screen. Once you selected all the packages you want to remove, click on “apply” button.

Читайте также:  Аналоги adobe reader для windows

Method 2: Install and Remove Software in Manjaro Linux with Octopi

Octopi is a Qt-based Pacman front end used in KDE and LXQt. Just like Pamac, it can install applications from the Manjaro repositories or the AUR.

Let’s take a look at how to use it.

Install Software in Manjaro Linux with Octopi

In order to find an application to install, you can either search for it by name or search for it by a group. You can see a description of each application, as well as, what files are included. Octopi also offers distro new and usage instructions.

Once you find the application you are looking for, right click the name from the list and click “Install”. If you select several applications to install, they will be listed under the “Transactions” tab. When you are ready to install, click the check mark icon on the left or press CTRL + M to commit changes.

You will then be prompted to approve the installation process. You can also choose to see the output in the terminal. After you enter your password, your application will be installed.

In order to search for an application in the AUR using Octopi, click on the little green alien to the left of the search box. Once you right click on an application title and select “Install”, you will be taken to the terminal where the install will begin.

You will be asked if you want to edit PKGBUILD. Select “no” for this query and “yes” for the rest. Unfortunately, this means you will only be able to install one application at a time from the AUR.

Please note that Octopi does not allow you to install applications from Manjaro repositories and AUR at the same time.

Remove Software in Manjaro Linux with Octopi

Uninstalling applications with Octopi is just as easy as Pamac.

Search for the application, right-click the title from the list, right-click and select “Remove“. Once you click the “Apply” button in toolbar, it will be removed.

Manjaro Octopi Remove

Method 3: Install and Remove Software in Manjaro Linux with Pacman command

Graphical applications are easy to use, but terminal or command line programs are more powerful and faster.

Install Software in Manjaro Linux with pacman

As I stated above, Pacman is the command line package manager for Arch based distros. To install an application, all you have to do is enter sudo pacman -S PACKAGENAME . Just replace PACKAGENAME with the name of the application that you want to install.

You will be prompted to enter your password. Once you enter it, your application will be downloaded and installed.

You can also install a group of packages such a GNOME using this command:

Remove Software in Manjaro Linux with pacman

Removing software with Pacman is just as easy. All you have to do is enter the following command:

Just replace PACKAGENAME with the name of the package you want to remove.

Tips to Improve Pacman Experience

Since it’s a terminal application, Pacman can run pretty quickly, Unfortunately, the process can be slowed down by a bad mirror.

You can use this command to rank mirrors by speed and remove out of date mirrors:

When that is finished you will need to sync the Pacman database with this command:

Method 4: Install and Remove Software in Manjaro Linux with yay

While you can’t install an application from the AUR using Pacman, there are a number of terminal programs that allow you to do just that. One of the most well-known examples is yay.

Install Software in Manjaro Linux with yay

You can install packages from both official repository and AUR. You first need to install yay on your machine. To do this, type in the commands below:

One nice thing about yay is that it gives you the ability to search for the application you want to install, all you have to do is use this command:

Don’t forget to replace PACKAGENAME with the name of the application you are looking for.

You will be prompted to enter “y” to continue. You will be prompted to enter your password and asked a couple more questions verifying that you want to install this application.

Читайте также:  Где хранятся docker images windows

Depending on how large the file is and how much work “yay” has to do to prepare the file, the install may be finished quickly or take a while to complete.

Remove Software in Manjaro Linux with yay

To remove an AUR application with yay, just use the following command:

Wrapping Up

If you use Manjaro or any other Arch derivatives, what is your preferred method for adding and removing applications?

If you found this article interesting, please share it with your friends and family on your favorite social media sites.

Like what you read? Please share it with others.

Источник

Pamac

Содержание

Pamac is Manjaro’s Package Manager. It is based on libalpm with AUR and Appstream support. It focuses on providing an easy to use interface while still providing a powerful set of features.

Pamac is pre-installed on many Manjaro Editions but if your system does not have it can be easily installed. Pamac comes in several different packages:

  • pamac-gtk — The GTK version of pamac. Includes a tray icon for many desktops.
  • pamac-qt — The Qt version of pamac. Experimental.
  • pamac-cli — The command line version of pamac.
  • pamac-tray-appindicator — A tray icon for KDE plasma

These packages can be installed using pacman. For example, to install the GTK version, you can use the command:

Installing Software

To install packages simply check check the box next to the packages. Once you have selected all the packages all the packages you want to install, click the Apply button at the bottom of the page.

If any of the packages have optional dependencies(packages that enable additional functionality) you will see a window like the one to the left which allows to select the ones you would like to install.

After you have selected optional dependencies, you should see a windows similar to the one pictured on the left. This lists all the packages that will be installed, upgraded or removed by the action. Once you have reviewed the list, press the Apply button to install the packages.

You may notice this list has more packages than you selected in the GUI. This is because many packages also have dependencies which are packages that must be installed in order for the software you selected to function properly. You may also notice that packages are being removed even though you didn’t select any packages to remove. This is happening in the example to the left where you can see clutter and cogl are being removed. They are being removed because they conflict with deepin-clutter and deepin-cogl which provide the same functionality.

Removing Software

Removing software is as simple as unchecking the packages you want to remove and clicking the Apply button at the bottom of the page.

Once you do you should see a screen similar to the one on the left which lists all the packages that are about to be removed. You may notice this list contains more packages than you selected. This is because when you remove a package that other packages depend on, those packages are also removed.

Preferences

You can access the preferences by clicking on the three dots in the upper right corner and selecting preferences.

The General tab of preferences contains several settings, most of which are self explanatory.

  • Remove unrequired dependencies — This removes dependencies which are no longer required by any package
  • Check available disk space — Checks to ensure you have sufficient disk space available before downloading and installing packages
  • Maximum parallel downloads — The number of concurrent downloads allowed
  • Enable downgrade — This allows packages to be downgraded as well as upgraded. This is important when switching branches.
  • Check for updates — Disabling this will stop Pamac from looking for updates. In most cases, turning this off on a rolling release distro like Manjaro is a bad idea.
  • Ignore updates for — This is a list of packages that you don’t want to be upgraded. This is inherently dangerous practice and should only be used by advanced users.
Читайте также:  Экран ноутбука сам меняет яркость windows 10

Pamac is also capable of installing and upgrading packages from the Arch User Repository(AUR). Please carefully read the considerations in the linked page prior to enabling support for AUR.

If you enable AUR support, it is usually wise to also select, «Check for updates from AUR» so software you install from AUR won’t become outdated.

Checking for «development package» updates will allow updates on *-git packages which are built from the latest source code to also be updated.

The «Build directory» is where AUR packages will be built. Using «tmp» usually will provide the best performance but very large packages may fail to build. In this case, select somewhere with more available space.

When Pamac installs packages, it keeps a copy of all the old packages you have downloaded. This cache can be very useful if you have to download packages in an emergency. However, left unchecked, this cache will grow very large over time. These preferences allow your cache to be automatically managed based on your preferences.

The first option allows you to set a number for how many copies of each package are retained. In other words, if you have downloaded 25 versions of firefox over the life of your install and you set this number to «3», only the most recent 3 versions will be retained. Unless you are very short on disk space, it is recommended to set this to at least 2.

By selecting «Remove only the versions of uninstalled packages» pamac will retain all versions of packages you still have installed.

Pamac also includes a fully functional CLI for when you don’t have a functional GUI or for those that prefer to manager packages that way.

Locating and Installing Packages

To search for available packages you can use the command pamac search . For example, to search the repos for packages containing the word smplayer:

As you can see, this will also show you which packages are already installed. If you would like to search both the repos and AUR you add -a like this:

Once you have identified the packages you wish to install you can install them with command pamac install . For example, if we wanted to install smplayer and smplayer-themes we could use the command:

If you want to install packages from AUR you use the command pamac build . Sticking with the above example, if you decided you wanted to install umplayer instead you could the command:

Removing Packages

The command pamac remove can be used to uninstall packages installed from the repos or AUR. For example if you wanted to remove all the packages installed above you could use the command:

Identifying Installed Packages

To display a list of all installed packages you can use the command:

Displaying Detailed Package Information

To display detailed information on a package that is in the repos or installed on your system use the command pamac info . Keeping with our example:

If you also would like to check packages in AUR you could use:

Updating the System

To check if updates are available you can use the command:

To update all installed packages installed from the repos or AUR you can use the command:

Dealing with Orphaned Packages

To check to see if there any orphaned packages(packages which are no longer needed) installed you can use:

To remove all orphans use the command:

Cleaning the Cache

When pamac installs packages, it keeps a copy of all the old packages you have downloaded. This cache can be very useful if you have to install older packages in an emergency. However, left unchecked, this cache will grow very large over time.

Otherwise, to clear the cache completely, enter the following command (and use with care):

A safer way to remove old package cache files is to remove all packages except for the latest three package versions using:

Other Useful Pamac Functions

To see which package owns a certain file on your system, use the command pamac search -f . For example:

To force a package to be installed even if it is already installed use pamac reinstall . For example:

Источник

Оцените статью