Manjaro Difference between pages "About Manjaro" and "Pacman Overview"

Difference between pages "About Manjaro" and "Pacman Overview"

From Manjaro
(Difference between pages)
imported>Handy
 
imported>Dalto
m (formatting)
 
Line 1: Line 1:
:<blockquote><font size="4">'Manjaro Linux targets beginners and advanced users at the same time. We provide user interface tools and scripts to make life easier. Manjaro supports NVIDIA's Optimus technology out of the box...' '''Philip Müller - Manjaro Developer'''</font size></blockquote>
__TOC__


= Overview =


[[File:BigManjaroIcon.png|left|90px]]
=Overview=


'''Manjaro''' is a user-friendly Linux distribution based on the independently developed [http://en.wikipedia.org/wiki/Arch_Linux Arch operating system]. Within the Linux community, Arch itself is renowned for being an exceptionally fast, powerful, and lightweight distribution that provides access to the very latest cutting edge - and bleeding edge - software. However, Arch is also aimed at more experienced or technically-minded users. As such, it is generally considered to be beyond the reach of those who lack the technical expertise (or persistence) required to use it.  
Manjaro's package manager, [[Pamac]] ships with most Manjaro editions.  All Manjaro editions include [https://www.archlinux.org/pacman/ pacman], the package manager from upstream Arch Linux. Pacman includes some advanced features not found in Pamac.


Developed in Austria, France, and Germany, Manjaro provides all the benefits of the Arch operating system combined with a focus on ''user-friendliness'' and ''accessibility''. Available in both 32 and 64 bit versions, Manjaro is suitable for newcomers as well as experienced Linux users. '''For newcomers''', a user-friendly installer is provided, and the system itself is designed to work fully 'straight out of the box' with features including:
Key points to know:


* Pre-installed desktop environments
* Pacman is already installed in Manjaro Linux by default
* Pre-installed graphical applications to easily install software and update your system, and
* Pacman is mainly developed/maintained by Arch Linux developers
* Pre-installed codecs to play multimedia files
* Pacman can only be used from the command line, if you would prefer a graphical package manager please see [[Pamac]] or [[Octopi]]
* Pacman can only use the official Manjaro [[Repositories_and_Servers|repository]]. There are seperate articles available for accessing the [[Arch_User_Repository|Arch User Repository(AUR)]], using [[Flatpak|flatpaks]] and using [[Snaps|snaps]]




'''For more experienced - and adventurous - users''' Manjaro also offers the configurability and versatility to be shaped and moulded in every respect to suit personal taste and preference. Furthermore, a minimalist '''NET-Edition''' is also available  in both 32 and 64 bit versions. Stripped of any pre-installed software, this provides a base installation on which to build your own system; starting from a command line, be completely free to chose your own greeters, desktops, hardware drivers, software applications, and so on!
=Installing Updates=


To update the package database and update all packages on the system
sudo pacman -Syu


= Features =


Manjaro shares many of the same features as Arch, including:
To force a full refresh of the package database and update all packages on the system. You must do this when [[Switching_Branches|switching branches]] or [[Pacman-mirrors|switching mirrors]].
sudo pacman -Syyu


* Speed, power, and efficiency
* Access to the very latest cutting and bleeding edge software
* A '''[http://blog.manjaro.org/2012/12/11/manjaro-installation-up-to-date-then-you-already-have-the-latest-release/ 'rolling release' development model]''' that provides the most up-to-date system possible without the need to install new versions, and
* Access to the '''[[Arch_User_Repository|Arch User Repository (AUR)]].'''


To force a full refresh of the package database, update all packages on the system and allow packages to be downgraded.  Downgrading should be only be needed when switching to an older branch.  For example, switching from Testing to Stable.
sudo pacman -Syyuu


However, Manjaro boasts a few extra features of its own, including:


* A simplifed, '''user-friendly''' installation process
=Searching for Packages=
* '''Automatic detection''' of your computer's hardware (e.g. graphics cards)
* '''Automatic installation''' of the necessary software (e.g. graphics drivers) for your system
* Its own '''dedicated software repositories''' to ensure delivery of fully tested and stable software packages, and
* Support for the easy installation and use of '''[[Manjaro_Kernels| multiple kernels]].'''


To search the Manjaro repositories for available packages you can use the command {{ic|pacman -Ss keyword}}. It will search both the package name and the description for the keyword.  For example, to search for packages containing the keyword smplayer you could use:
pacman -Ss smplayer


<center>[[file:xfce.png]]</center>


= Latest Stable Releases =
You can search your installed packages in the same manner using {{ic|-Qs}} instead of {{ic|-Ss}}.  To search your installed packages for smplayer:
pacman -Qs smplayer


{{note|Community Editions differ from official releases insofar as they are not subject to the same release schedules, and will only be developed when the time and resources are available to do so.}}


Once you have found a package you can use {{ic|pacman -Qi}} to get more information about an installed packages or {{ic|pacman -Si}} for packages in the repos.  Following the example above you could use
pacman -Si smplayer


'''The latest stable Manjaro release is 0.8.7.1''', released September 2013. Both 32 and 64 bit '''official versions''' (i.e. maintained by the development team) of Manjaro 0.8.7.1 are available in the following flavours:


* XFCE
Finally, for a list of all installed packages on your system, enter the following command:
* Openbox
pacman -Ql
* NET-Edition (no desktop)




The latest '''Community Editions''' of Manjaro, released for both 32 and 64 bit systems, are also available in the following flavours:
=Installing Packages=


* MATE   
{{warning|Never install a package without updating the system first.  On a rolling release this can lead to an unbootable system}}
* Cinnamon
* KDE     
* LXDE   
* E17   




More information about the release of Manjaro 0.8.7.1 can be found in our Blog article '''[http://manjaro.org/2013/09/12/manjaro-0-8-7-1-back-to-the-future-released/ Manjaro 0.8.7.1 – Back to the future – released]'''. IceWM, FluxBox, AwesomeWM, i3-WM, Gnome 3.8, and Razor-QT are also available for installation from the Official Manjaro repositories.
To install a software package, the basic syntax is {{ic|pacman -S packagename}}. However, installing a package without updating the system will lead to a partial upgrade situation so all the examples here will use {{ic|pacman -Syu packagename which will install the package and ensure the system is up to date}}. For example, to sinatll smplayer the command is:
sudo pacman -Syu smplayer


= Latest Testbuild =


As of September 2013, the latest build is the Manjaro 0.8.7.1 release.
You will then be presented a list of software to install.  You may notice this list has more packages than you requested. 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.  




= Recommended System Requirements =
Pacman can also directly install packages from the local system or a location on the internet.  The format of that command is {{ic|pacman -U packagelocation}}.  For example, to install a copy of your package cache you could do something like:
sudo pacman -U /var/cache/pacman/pkg/smplayer-19.5.0-1-x86_64.pkg.tar.xz


''Recommended'' rather than ''minimum'' system requirements have been provided in order to ensure that you get the most out of your Manjaro system. Although many distributions will list the bare minimum specifications necessary to run, it wouldn't be a particularly fun or useful experience to actually use them! As such, it is recommended to have at least:
Alternatively, you could get it directly from one of Manjaro's mirrors:
sudo pacman -U https://mirror.alpix.eu/manjaro/stable/community/x86_64/smplayer-19.5.0-1-x86_64.pkg.tar.xz


* One gigabyte (GB) of memory
* Thirty gigabytes (GB) of hard disk space
* A one gigahertz (Ghz) processor
* A high definition (HD) graphics card and monitor
* A broadband internet connection


{{warning|When using pacman -U it is up to you to ensure that the package you are installing is fully compatible with your system.}}


= Reviews =


As Manjaro employs a rolling release schedule, the reviews listed will always be for the latest version available.
=Removing Packages=


* '''"Review: Manjaro Linux 0.8.7"''' - by ''JtheLinuxguy'' ([https://www.youtube.com/watch?v=wqxYqYg6Tyk Youtube Video])
{{warning|Always review the package list before confirming when removing packagesIf you are not careful you can easily remove your entire desktop due to dependencies.}}
* '''"Manjaro 0.8.7 "Ascella" XFCE Review: Superb performance with professional looks!"''' - by ''Arindam Sen'' ([http://mylinuxexplore.blogspot.co.uk/2013/09/manjaro-087-ascella-xfce-review-superb.html?showComment=1378917482241 Blog Article])
* '''"Review: Manjaro 0.8.7 :: The Future of User Friendly Linux!"''' by ''Spatry,      from Spatry's Cup of Linux'' ([https://www.youtube.com/watch?v=C3s7qw1Zoow&feature=c4-overview&list=UUmO_G49F6QTFS5CPUfuQADg Youtube Video])


= Further Information =


* The Manjaro page at [http://distrowatch.com/table.php?distribution=manjaro| Distrowatch.com]
To remove a software package, the basic syntax is {{ic|sudo pacman -R packagename}}. We could remove the smplayer package we installed above with:
sudo pacman -R smplayer




= The Manjaro Development Team =
This will remove the package, but will leave all the dependencies behind.  If you also want to remove the unneeded dependencies you could use {{ic|pacman -Rsu packagename}} as seen in this example:
sudo pacman -Rsu smplayer




=== Core Team ===
Sometimes when you try to remove a package you will not be able to because there are other packages which depend on it.  You can use {{ic|pacman -Rc packagename}} to remove a package and everything that depends on it.  Be careful to heed the above warning when using this option.
sudo pacman -Rc smplayer


'''Roland Singer''' - Project Leader, Designer, Developer, Web Developer, Packager


'''Guillaume Benoit''' - Server Manager, Packager, Moderation
The most nuclear option is {{ic|pacman -Rcs packagename}}. This will remove everything that depends on packagename and continue to do so on it's dependencies.  This should really only be used in exceptional circumstances such as when removing an entire desktop environment and trying not to leave anything behind.
   
'''Philip Müller''' - Mirrors Manager, Packager, Developer, Web Developer


'''Alexandre A. Arnt''' - Octopi, Community, Forum, Developer (Octopi)


Pacman usually also creates backup configuration files when deleting packages. To remove those, you can add {{ic|n}} to any of the examples above.  For example:
sudo pacman -Rn smplayer
sudo pacman -Rsun smplayer
sudo pacman -Rcn smplayer


=== Website and Artwork Team ===


'''Tillman Ebert''' - Design, Testing, Website
=Viewing and Removing Orphans=


To list all ''orphans'', installed packages that are not used by anything else and should no longer be needed:
pacman -Qdt


=== Forum, Community and Support ===


'''Allesandro Calo''' - Community, Forum, Website
To remove all the orphans:
sudo pacman -Rs $(pacman -Qdtq)


'''Ajay Chahar''' - Community, IRC Support


'''ringo32''' - Forum and Community Support
=Downloading Packages without Installing=


'''Verändert''' - Forum and Community Support
In some cases it may be useful to download a package without installing.  For example, to install on a different system that is not connected to the internet.  This can be done with {{ic|pacman -Sw packagename}}.  For example:
sudo pacman -Sw smplayer


'''YFDogan''' - Forum and Community Support


'''SpaceAviator''' - Forum and Community Support
The package and any rerquired dependencies will be downloaded to your pacman cache at {{ic|/var/cache/pacman/pkg}}


'''handy''' - Forum, Community and Wiki Support


'''Quantum''' - Forum, Community and Wiki Support
=Determining which Package Owns a File=


'''Carl Duff''' - Community and Wiki Support
It is often useful to understand which package installed a file on your system.  This is easy to do with pacman using {{ic|pacman -Qo /path/to/filename}}.  For example:
pacman -Qo /usr/bin/smplayer


'''Holmes''' - Manjaro Brazil and Mirror Support


'''Ruziel''' - Forum and Community Support
=Cleaning the Cache=


'''Cumali''' - Community Releases and Forum
When pacman 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. Systems running [[Pamac]] will already have access to it's automated pacman cache cleaning functions.  It is also possible to clean them manually using pacman.


'''Tulliana''' - Community Releases and Forum
To clear the cache of downloads that have already been installed, enter the following command:
sudo pacman -Sc


'''Aaditya Bagga''' - Forum and Wiki Support


'''mips''' - Forum and Community Support
Otherwise, to clear the cache completely, enter the following command (and use with care):
sudo pacman -Scc
 
 
A safer way to remove old package cache files is to remove all packages except for the latest three package versions using {{ic|paccache}}:
paccache -rvk3
 
 
=The Configuration File, pacman.conf=
 
Pacman's settings are located in {{ic|/etc/pacman.conf}}.  This file is owned by root, please see [[Viewing_and_editing_configuration_files|this guide]] if you need more information on how to edit this file.  A full reference to these options can be found in the Arch Wiki linked below.  This sections features some settings that may be of particular interest to Manjaro users.
 
 
{{note|pacman.conf settings are case sensitive}}
 
 
==Enabling Color Output==
 
By default, pacman's output is monochrome but enabling colored output can make the output easier to read if your terminal supports colors.  This can be enabled by uncommenting ort adding the following line to the file
Color
 
 
==Showing PacMan Eating Power Pills==
 
If you are bored of simply watching lines of hashes while downloading software packages in the terminal, why not change the progress bar to Pacman eating power pills instead?  To enable this, simply add the line:
ILoveCandy
 
 
=Troubleshooting=
 
A separate page for pacman troubleshooting is available '''[[pacman troubleshooting|here]]'''.


'''Esclapion''' - Community Releases and Forum


=See Also=
=See Also=


* '''[[Manjaro FAQ]]'''
* [[System Maintenance]]
* [[Pacman-mirrors]]
* [[Pacman troubleshooting]]
* [[Downgrading packages]]
* [https://wiki.archlinux.org/index.php/Pacman ArchWiki: pacman]
* [https://wiki.archlinux.org/index.php/Pacman_tips ArchWiki: pacman tips]
* [https://wiki.archlinux.org/index.php/Improve_pacman_performance ArchWiki: pacman performance]




[[Category:Contents Page]]
[[Category:Contents Page]]

Revision as of 23:16, 19 July 2019


Overview

Manjaro's package manager, Pamac ships with most Manjaro editions. All Manjaro editions include pacman, the package manager from upstream Arch Linux. Pacman includes some advanced features not found in Pamac.

Key points to know:

  • Pacman is already installed in Manjaro Linux by default
  • Pacman is mainly developed/maintained by Arch Linux developers
  • Pacman can only be used from the command line, if you would prefer a graphical package manager please see Pamac or Octopi
  • Pacman can only use the official Manjaro repository. There are seperate articles available for accessing the Arch User Repository(AUR), using flatpaks and using snaps


Installing Updates

To update the package database and update all packages on the system

sudo pacman -Syu


To force a full refresh of the package database and update all packages on the system. You must do this when switching branches or switching mirrors.

sudo pacman -Syyu


To force a full refresh of the package database, update all packages on the system and allow packages to be downgraded. Downgrading should be only be needed when switching to an older branch. For example, switching from Testing to Stable.

sudo pacman -Syyuu


Searching for Packages

To search the Manjaro repositories for available packages you can use the command pacman -Ss keyword. It will search both the package name and the description for the keyword. For example, to search for packages containing the keyword smplayer you could use:

pacman -Ss smplayer


You can search your installed packages in the same manner using -Qs instead of -Ss. To search your installed packages for smplayer:

pacman -Qs smplayer


Once you have found a package you can use pacman -Qi to get more information about an installed packages or pacman -Si for packages in the repos. Following the example above you could use

pacman -Si smplayer


Finally, for a list of all installed packages on your system, enter the following command:

pacman -Ql


Installing Packages

Warning
Never install a package without updating the system first. On a rolling release this can lead to an unbootable system


To install a software package, the basic syntax is pacman -S packagename. However, installing a package without updating the system will lead to a partial upgrade situation so all the examples here will use pacman -Syu packagename which will install the package and ensure the system is up to date. For example, to sinatll smplayer the command is:

sudo pacman -Syu smplayer


You will then be presented a list of software to install. You may notice this list has more packages than you requested. 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.


Pacman can also directly install packages from the local system or a location on the internet. The format of that command is pacman -U packagelocation. For example, to install a copy of your package cache you could do something like:

sudo pacman -U /var/cache/pacman/pkg/smplayer-19.5.0-1-x86_64.pkg.tar.xz

Alternatively, you could get it directly from one of Manjaro's mirrors:

sudo pacman -U https://mirror.alpix.eu/manjaro/stable/community/x86_64/smplayer-19.5.0-1-x86_64.pkg.tar.xz


Warning
When using pacman -U it is up to you to ensure that the package you are installing is fully compatible with your system.


Removing Packages

Warning
Always review the package list before confirming when removing packages. If you are not careful you can easily remove your entire desktop due to dependencies.


To remove a software package, the basic syntax is sudo pacman -R packagename. We could remove the smplayer package we installed above with:

sudo pacman -R smplayer


This will remove the package, but will leave all the dependencies behind. If you also want to remove the unneeded dependencies you could use pacman -Rsu packagename as seen in this example:

sudo pacman -Rsu smplayer


Sometimes when you try to remove a package you will not be able to because there are other packages which depend on it. You can use pacman -Rc packagename to remove a package and everything that depends on it. Be careful to heed the above warning when using this option.

sudo pacman -Rc smplayer


The most nuclear option is pacman -Rcs packagename. This will remove everything that depends on packagename and continue to do so on it's dependencies. This should really only be used in exceptional circumstances such as when removing an entire desktop environment and trying not to leave anything behind.


Pacman usually also creates backup configuration files when deleting packages. To remove those, you can add n to any of the examples above. For example:

sudo pacman -Rn smplayer
sudo pacman -Rsun smplayer
sudo pacman -Rcn smplayer


Viewing and Removing Orphans

To list all orphans, installed packages that are not used by anything else and should no longer be needed:

pacman -Qdt


To remove all the orphans:

sudo pacman -Rs $(pacman -Qdtq)


Downloading Packages without Installing

In some cases it may be useful to download a package without installing. For example, to install on a different system that is not connected to the internet. This can be done with pacman -Sw packagename. For example:

sudo pacman -Sw smplayer


The package and any rerquired dependencies will be downloaded to your pacman cache at /var/cache/pacman/pkg


Determining which Package Owns a File

It is often useful to understand which package installed a file on your system. This is easy to do with pacman using pacman -Qo /path/to/filename. For example:

pacman -Qo /usr/bin/smplayer


Cleaning the Cache

When pacman 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. Systems running Pamac will already have access to it's automated pacman cache cleaning functions. It is also possible to clean them manually using pacman.

To clear the cache of downloads that have already been installed, enter the following command:

sudo pacman -Sc


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

sudo pacman -Scc


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

paccache -rvk3


The Configuration File, pacman.conf

Pacman's settings are located in /etc/pacman.conf. This file is owned by root, please see this guide if you need more information on how to edit this file. A full reference to these options can be found in the Arch Wiki linked below. This sections features some settings that may be of particular interest to Manjaro users.


Note
pacman.conf settings are case sensitive


Enabling Color Output

By default, pacman's output is monochrome but enabling colored output can make the output easier to read if your terminal supports colors. This can be enabled by uncommenting ort adding the following line to the file

Color


Showing PacMan Eating Power Pills

If you are bored of simply watching lines of hashes while downloading software packages in the terminal, why not change the progress bar to Pacman eating power pills instead? To enable this, simply add the line:

ILoveCandy


Troubleshooting

A separate page for pacman troubleshooting is available here.


See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.