Difference between revisions of "Pamac"

Marked this version for translation
m (added languages and translate tags)
(Marked this version for translation)
Line 3: Line 3:


<translate>
<translate>
=Overview=
=Overview= <!--T:1-->


<!--T:2-->
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 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.




<!--T:3-->
[[File:Pamac-gtk-main.png|center|800px]]
[[File:Pamac-gtk-main.png|center|800px]]




=Installing Pamac=
=Installing Pamac= <!--T:4-->


<!--T:5-->
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 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:
* {{ic|pamac-gtk}} - The GTK version of pamac.  Includes a tray icon for many desktops.
* {{ic|pamac-gtk}} - The GTK version of pamac.  Includes a tray icon for many desktops.
Line 20: Line 23:




<!--T:6-->
These packages can be installed using pacman.  For example, to install the GTK version, you can use the command:
These packages can be installed using pacman.  For example, to install the GTK version, you can use the command:
  sudo pacman -Syu pamac-gtk
  sudo pacman -Syu pamac-gtk




<!--T:7-->
{{tip|Both the GTK and Qt Pamac packages will automatically install the CLI version as well}}
{{tip|Both the GTK and Qt Pamac packages will automatically install the CLI version as well}}


=Using the Pamac GUI=
=Using the Pamac GUI= <!--T:8-->




==Installing Software==
==Installing Software== <!--T:9-->


<!--T:10-->
[[File:Pamac-gtk-optional-deps.png|left|thumb|400px]]
[[File:Pamac-gtk-optional-deps.png|left|thumb|400px]]




<!--T:11-->
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.
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.




<!--T:12-->
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.
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.
<div style="clear: both"></div>
<div style="clear: both"></div>
Line 42: Line 50:




<!--T:13-->
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.
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.




<!--T:14-->
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 {{ic|clutter}} and {{ic|cogl}} are being removed.  They are being removed because they conflict with {{ic|deepin-clutter}} and {{ic|deepin-cogl}} which provide the same functionality.
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 {{ic|clutter}} and {{ic|cogl}} are being removed.  They are being removed because they conflict with {{ic|deepin-clutter}} and {{ic|deepin-cogl}} which provide the same functionality.
<div style="clear: both"></div>
<div style="clear: both"></div>




==Removing Software==
==Removing Software== <!--T:15-->


<!--T:16-->
[[File:Pamac-gtk-remove-summary.png|left|thumb|400px]]
[[File:Pamac-gtk-remove-summary.png|left|thumb|400px]]




<!--T:17-->
Removing software is as simple as unchecking the packages you want to remove and clicking the Apply button at the bottom of the page.
Removing software is as simple as unchecking the packages you want to remove and clicking the Apply button at the bottom of the page.




<!--T:18-->
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.
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.




<!--T:19-->
{{warning|It is extremely important to carefully review the Transaction Summary before accepting the package removal.  Some packages have many packages which depend on them and you don't want to inadvertently remove your whole Desktop Environment}}
{{warning|It is extremely important to carefully review the Transaction Summary before accepting the package removal.  Some packages have many packages which depend on them and you don't want to inadvertently remove your whole Desktop Environment}}
<div style="clear: both"></div>
<div style="clear: both"></div>


==Preferences==
==Preferences== <!--T:20-->




<!--T:21-->
You can access the preferences by clicking on the three dots in the upper right corner and selecting preferences.
You can access the preferences by clicking on the three dots in the upper right corner and selecting preferences.




<!--T:22-->
[[File:Pamac-gtk-preferences-general.png|left|thumb|400px]]
[[File:Pamac-gtk-preferences-general.png|left|thumb|400px]]




<!--T:23-->
The General tab of preferences contains several settings, most of which are self explanatory.
The General tab of preferences contains several settings, most of which are self explanatory.




<!--T:24-->
* Remove unrequired dependencies - This removes dependencies which are no longer required by any package
* 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
* Check available disk space - Checks to ensure you have sufficient disk space available before downloading and installing packages
Line 83: Line 101:




<!--T:25-->
{{warning|Ignoring updates for individual packages will leave you in an unsupported "partial upgrade" state.  It is common for innocuous looking ignored packages to leave your system unbootable}}
{{warning|Ignoring updates for individual packages will leave you in an unsupported "partial upgrade" state.  It is common for innocuous looking ignored packages to leave your system unbootable}}
<div style="clear: both"></div>
<div style="clear: both"></div>
Line 88: Line 107:




<!--T:26-->
Pamac is also capable of installing and upgrading packages from the [[Arch User Repository|Arch User Repository(AUR)]].  Please carefully read the considerations in the [[Arch User Repository|linked page]] prior to enabling support for AUR.
Pamac is also capable of installing and upgrading packages from the [[Arch User Repository|Arch User Repository(AUR)]].  Please carefully read the considerations in the [[Arch User Repository|linked page]] prior to enabling support for AUR.




<!--T:27-->
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.
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.




<!--T:28-->
Checking for "development package" updates will allow updates on *-git packages which are built from the latest source code to also be updated.
Checking for "development package" updates will allow updates on *-git packages which are built from the latest source code to also be updated.




<!--T:29-->
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.
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.
<div style="clear: both"></div>
<div style="clear: both"></div>
Line 102: Line 125:




<!--T:30-->
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.
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.




<!--T:31-->
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.
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.




<!--T:32-->
By selecting "Remove only the versions of uninstalled packages" pamac will retain all versions of packages you still have installed.
By selecting "Remove only the versions of uninstalled packages" pamac will retain all versions of packages you still have installed.
<div style="clear: both"></div>
<div style="clear: both"></div>




=Using the Pamac CLI=
=Using the Pamac CLI= <!--T:33-->


<!--T:34-->
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.
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.


<!--T:35-->
{{warning|Never use sudo with pamac.  It will ask for escalated rights if it needs them}}
{{warning|Never use sudo with pamac.  It will ask for escalated rights if it needs them}}




==Locating and Installing Packages==
==Locating and Installing Packages== <!--T:36-->


<!--T:37-->
To search for available packages you can use the command {{ic|pamac search}}.  For example, to search the repos for packages containing the word smplayer:
To search for available packages you can use the command {{ic|pamac search}}.  For example, to search the repos for packages containing the word smplayer:
<pre>pamac search smplayer
<pre>pamac search smplayer
Line 131: Line 160:




<!--T:38-->
As you can see, this will also show you which packages are already installed.  If you would like to search both the repos and [[Arch_User_Repository|AUR]] you add {{ic|-a}} like this:
As you can see, this will also show you which packages are already installed.  If you would like to search both the repos and [[Arch_User_Repository|AUR]] you add {{ic|-a}} like this:
<pre>pamac search -a smplayer
<pre>pamac search -a smplayer
Line 159: Line 189:




<!--T:39-->
Once you have identified the packages you wish to install you can install them with command {{ic|pamac install}}.  For example, if we wanted to install {{ic|smplayer}} and {{ic|smplayer-themes}} we could use the command:
Once you have identified the packages you wish to install you can install them with command {{ic|pamac install}}.  For example, if we wanted to install {{ic|smplayer}} and {{ic|smplayer-themes}} we could use the command:
  pamac install smplayer smplayer-themes
  pamac install smplayer smplayer-themes




<!--T:40-->
{{tip|When using install pamac will check to see if packages are installed and only install the ones not already installed}}
{{tip|When using install pamac will check to see if packages are installed and only install the ones not already installed}}




<!--T:41-->
If you want to install packages from [[Arch_User_Repository|AUR]] you use the command {{ic|pamac build}}.  Sticking with the above example, if you decided you wanted to install {{ic|umplayer}} instead you could the command:
If you want to install packages from [[Arch_User_Repository|AUR]] you use the command {{ic|pamac build}}.  Sticking with the above example, if you decided you wanted to install {{ic|umplayer}} instead you could the command:
  pamac build umplayer
  pamac build umplayer




==Removing Packages==
==Removing Packages== <!--T:42-->


<!--T:43-->
The command {{ic|pamac remove}} can be used to uninstall packages installed from the repos or [[Arch_User_Repository|AUR]].  For example if you wanted to remove all the packages installed above you could use the command:
The command {{ic|pamac remove}} can be used to uninstall packages installed from the repos or [[Arch_User_Repository|AUR]].  For example if you wanted to remove all the packages installed above you could use the command:
  pamac remove smplayer smplayer-themes umplayer
  pamac remove smplayer smplayer-themes umplayer
Line 177: Line 211:




<!--T:44-->
{{warning|It is extremely important to carefully review the list of packages pamac presents before confirming.  Some packages have many packages which depend on them and you don't want to inadvertently remove your whole Desktop Environment}}
{{warning|It is extremely important to carefully review the list of packages pamac presents before confirming.  Some packages have many packages which depend on them and you don't want to inadvertently remove your whole Desktop Environment}}




==Identifying Installed Packages==
==Identifying Installed Packages== <!--T:45-->


<!--T:46-->
To display a list of all installed packages you can use the command:
To display a list of all installed packages you can use the command:
  pamac list -i
  pamac list -i




==Displaying Detailed Package Information==
==Displaying Detailed Package Information== <!--T:47-->


<!--T:48-->
To display detailed information on a package that is in the repos or installed on your system use the command {{ic|pamac info}}.  Keeping with our example:
To display detailed information on a package that is in the repos or installed on your system use the command {{ic|pamac info}}.  Keeping with our example:
  pamac info smplayer
  pamac info smplayer




<!--T:49-->
If you also would like to check packages in [[Arch_User_Repository|AUR]] you could use:
If you also would like to check packages in [[Arch_User_Repository|AUR]] you could use:
  pamac info -a smplayer
  pamac info -a smplayer




==Updating the System==
==Updating the System== <!--T:50-->


<!--T:51-->
To check if updates are available you can use the command:
To check if updates are available you can use the command:
  pamac checkupdates -a
  pamac checkupdates -a




<!--T:52-->
To update all installed packages installed from the repos or [[Arch_User_Repository|AUR]] you can use the command:
To update all installed packages installed from the repos or [[Arch_User_Repository|AUR]] you can use the command:
  pamac upgrade -a
  pamac upgrade -a




<!--T:53-->
{{tip|pamac update and pamac upgrade are exactly the same.  You can use them interchangably.}}
{{tip|pamac update and pamac upgrade are exactly the same.  You can use them interchangably.}}




==Dealing with Orphaned Packages==
==Dealing with Orphaned Packages== <!--T:54-->


<!--T:55-->
To check to see if there any orphaned packages(packages which are no longer needed) installed you can use:
To check to see if there any orphaned packages(packages which are no longer needed) installed you can use:
  pamac list -o
  pamac list -o




<!--T:56-->
To remove all orphans use the command:
To remove all orphans use the command:
  pamac remove -o
  pamac remove -o




==Cleaning the Cache==
==Cleaning the Cache== <!--T:57-->


<!--T:58-->
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.
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.


<!--T:59-->
Otherwise, to clear the cache completely, enter the following command (and use with care):
Otherwise, to clear the cache completely, enter the following command (and use with care):
  pamac clean
  pamac clean


<!--T:60-->
A safer way to remove old package cache files is to remove all packages except for the latest three package versions using:
A safer way to remove old package cache files is to remove all packages except for the latest three package versions using:
  pamac clean --keep 3
  pamac clean --keep 3




==Other Useful Pamac Functions==
==Other Useful Pamac Functions== <!--T:61-->


<!--T:62-->
To see which package owns a certain file on your system, use the command {{ic|pamac search -f}}.  For example:
To see which package owns a certain file on your system, use the command {{ic|pamac search -f}}.  For example:
  pamac search -f /usr/bin/smplayer
  pamac search -f /usr/bin/smplayer




<!--T:63-->
To force a package to be installed even if it is already installed use {{ic|pamac reinstall}}.  For example:
To force a package to be installed even if it is already installed use {{ic|pamac reinstall}}.  For example:
  pamac reinstall smplayer
  pamac reinstall smplayer