Difference between revisions of "KDE Packages"

From ArchWiki
Jump to navigation Jump to search
(Using Meta-Packages: Meta package is just a normal package.)
Line 1: Line 1:
#REDIRECT [[KDE#Installation]]
[[pl:KDE Packages]]
[[ru:KDE Packages]]
[[zh-CN:KDE Packages]]
{{Merge|Pacman#Installing packages|Content unrelated to pacman should probably go in [[Creating packages]].|section=Outdated package names}}
{{Out of date|KDE Plasma 4 is unmaintained since August 2015. This article needs to be updated for Plasma 5, Frameworks and Applications.}}
{{Style|[[pacman]] commands should be removed as per [[Help:Style#Package_management_instructions]].}}
{{Related articles start}}
{{Related articles end}}
Since KDE SC 4.3, separate (split) packages for each application are provided. This article describes the concepts of groups and meta-packages.
; '''module''': The KDE software compilation source code is organized into several categories called ''modules''. Examples include kdebase, kdeutils etc. See the [http://techbase.kde.org/Projects/Release_Team#Coordinator_List Coordinator List] for more details.
; '''package group''': A package group is simply a group of packages. [[Pacman]] is able to select multiple packages by their group(s) during installation or removal.
; '''meta-package''': A meta-package is an empty package which just connects several packages by using dependencies.
===Why use groups?===
* Using groups makes it easier to install or remove a set of packages. This allows you to use a single command (like above) to install or remove all packages in a module.
* There is no hard dependency between a group and its packages. This means that there is no reason to have all member packages in a group installed. You may freely remove member packages that belong to a group without touching other member packages of the same group.
* [[Pacman]] will not install any new packages that may be added to a group at a later date. For instance, if the next release of the KDE software compilation includes new applications in one or more modules, these new applications will not be automatically installed when you upgrade your system. You will have to manually install these new packages. To overcome this, use meta-packages (see next section).
===Who is it for?===
Install package groups if you only want some modules of the current KDE software compilation release. Groups are also useful for those users who only want to retain some packages from a group, while opting to remove the others.
===Why use meta-packages?===
* Like package groups, meta-packages make it easy to install and maintain a set of packages. This allows you to use a single command ({{ic|# pacman -S meta-package}}) to install all packages in a module.
* Use of meta-packages ensures that [[pacman]] will install any new member packages automatically when you upgrade your system.
* Meta-packages have a hard dependency on all the member packages that are part of it. This means that you cannot freely remove member packages that are part of a meta-package without removing the meta-package first. For example, if you installed '''kde-meta-kdebase''' and would now like to remove a member package such as, '''kdebase-kwrite''', you will first need to remove the meta-package before removing the member package:
# pacman -R kde-meta-kdebase
# pacman -R kdebase-kwrite
Doing this will not remove other member packages in the '''kde-meta-kdebase''' meta-package, but it will also no longer automatically add new packages in that module (possibly from the next release) when you upgrade the system using pacman -Syu. You may re-install '''kde-meta-kdebase''' meta-package at any time to return to the monolithic package behavior.
If you installed the kde-meta package, you can remove all meta-packages at once by using:
# pacman -R kde-meta
This will only remove the meta-packages and not the actual member packages.
===Who is it for?===
Use meta-packages if you desire to install the entire KDE software compilation or one or more of its modules in its entirety. This ensures a smooth upgrade path by automatically adding new split packages from subsequent releases.
==Listing the member packages==
To get a complete list of KDE applications use
pacman -Sg kde
Get a list of all meta packages:
pacman -Sg kde-meta
Get a list of all KDE module groups:
for i in $(pacman -Sqg kde-meta); do echo ${i#kde-meta-};done
Get a list of all KDE packages and their module group:
for i in $(pacman -Sqg kde-meta); do pacman -Sg ${i#kde-meta-};done
You could also use the web interface at [https://www.archlinux.de/?page=Packages;group=5 archlinux.de] to browse package groups.

Latest revision as of 10:31, 28 December 2015

Redirect to: