Difference between revisions of "Package Manager/9.2"

From PC-BSD Wiki
Jump to: navigation, search
 
(26 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
<!--T:1-->
 
<!--T:1-->
{{NavHeader|back=Using AppCafe® |forward=PBI Manager}}</noinclude>
+
{{UseTOC{{putVers}}|Nav}}</noinclude>
  
 
<!--T:27-->
 
<!--T:27-->
PC-BSD® 9.2 added a graphical Package Manager utility to Control Panel which can be used to manage  
+
PC-BSD® provides a graphical Package Manager utility to Control Panel which can be used to manage  
installed desktops and system components. It can also be used as a front-end to the FreeBSD packages collection. The advantage of installing software using this utility is that any software installed this way will be tracked by [[Update Manager]]. If you prefer to start this utility from the command line, type '''pc-su pc-pkgmanager'''.
+
installed desktops and system components. It can also be used as a front-end to the FreeBSD packages collection. If you prefer to start this utility from the command line, type '''pc-su pc-pkgmanager'''.
  
 +
<!--T:31-->
 
Figure 7.2a shows Package Manager with its categories expanded. This sample system uses NVIDIA for graphics and the default desktop manager of KDE was kept during the installation. This default view is known as Basic View.
 
Figure 7.2a shows Package Manager with its categories expanded. This sample system uses NVIDIA for graphics and the default desktop manager of KDE was kept during the installation. This default view is known as Basic View.
  
 
<!--T:28-->
 
<!--T:28-->
[[File:package1.png|thumb|393px|'''Figure 7.2a: Viewing Installed Components''']]
+
[[File:package1a.png|thumb|393px|'''Figure 7.2a: Viewing Installed Components''']]
 +
 
 +
===Install System Components=== <!--T:41-->
  
 
<!--T:29-->
 
<!--T:29-->
 
To install or uninstall components, check the boxes for the components that you wish to install, uncheck the boxes for the components that you wish to remove, then click the "Apply" button to perform the requested operations.
 
To install or uninstall components, check the boxes for the components that you wish to install, uncheck the boxes for the components that you wish to remove, then click the "Apply" button to perform the requested operations.
  
To instead manage FreeBSD packages, click View ➜ Advanced to change to Advanced View. This view is shown in Figure 7.2b with the editors category expanded.
+
===Install FreeBSD Packages=== <!--T:42-->
 
+
[[File:package2.png|thumb|393px|'''Figure 7.2b: Managing FreeBSD Ports''']]
+
 
+
 
+
 
+
<!--T:2-->
+
'''pc-metapkgmanager''' is the back-end command line utility used by the PC-BSD® installer, Update Manager, and Warden® to manage meta-packages. Meta-packages are like system components, and include supported and unsupported desktops, development utilities, hardware drivers, and miscellaneous applications such as MythTV or XBMC.
+
 
+
<!--T:3-->
+
Beginning with version 9.1, PC-BSD® uses metapkgsets to determine which system components are available and which applications are installed with each system component. Currently, two metapkgsets are available: ''pcbsd'' which defines the available desktop components, and ''warden'' which defines the components available when creating a jail with Warden® or installing a PC-BSD® server. You can view the contents of these metapkgsets on {{citelink|url=http://trac.pcbsd.org/browser/pcbsd/current#build-files/metapkgsets|txt=trac}}.
+
 
+
<!--T:4-->
+
The '''pc-metapkgmanager''' command can be used at the command line to install or delete meta-packages, update to the latest package set, or to change the default metapkgset. If you type the command without any options, it will display its usage:
+
 
+
<!--T:5-->
+
{{txtbox|box='''pc-metapkgmanager'''
+
usage: pc-metapkgmanager [options]
+
Options:
+
&nbsp;add pkg1,pkg2 <loc> -- Add the specified list of meta-packages
+
&nbsp;                          <loc> should be a FTP / HTTP url where pkg_add
+
&nbsp;                          can fetch packages, or an absolute path to
+
&nbsp;                          location of pkg files on disk.
+
&nbsp;checkup -- Check for updates to pkgs
+
&nbsp;del pkg1,pkg2   -- Delete the specified list of meta-packages
+
&nbsp;list            -- List the available meta-packages
+
&nbsp;status <pkg>    -- List the status of the specified meta-packages
+
&nbsp;update pkg,pkg2 <loc>  -- Update system packages. Can use 'all' or <pkg,pkg2>.
+
&nbsp;                          <loc> should be a FTP / HTTP url where pkg_add
+
&nbsp;                          can fetch packages, or an absolute path to
+
&nbsp;                          location of pkg files on disk.
+
&nbsp;--pkgset <pkgset> -- Change default pkgset we are using
+
&nbsp;--chroot <dir> -- Operate on the directory specified using chroot}}
+
 
+
=== Finding, Installing, and Uninstalling Meta-Packages === <!--T:6-->
+
  
<!--T:7-->
+
<!--T:32-->
To determine which meta-packages are available:
+
To instead manage FreeBSD packages, click <span class=traverse>View{{rarr}}Advanced</span> to change to Advanced View. This view is shown in Figure 7.2b with the editors category expanded.
  
<!--T:8-->
+
<!--T:33-->
{{txtbox|box='''pc-metapkgmanager list {{pipe}} more'''
+
[[File:package2a.png|thumb|393px|'''Figure 7.2b: Managing FreeBSD Packages''']]
Meta Package: Awesome
+
<nowiki>-</nowiki>------------------------------------
+
Description: A highly configurable, next generation framework window manager
+
Icon: /var/db/pc-metapkgmanager/pkgsets/pcbsd/Awesome/pkg-icon.png
+
Parent: Unsupported-Desktops
+
Desktop: YES
+
Required Packages:
+
awesome-3.4.13
+
Meta Package: Compiz
+
<nowiki>-</nowiki>------------------------------------
+
Description: Compiz - OpenGL compositing manager
+
Icon: /var/db/pc-metapkgmanager/pkgsets/pcbsd/Compiz/pkg-icon.png
+
Parent: Misc
+
Desktop: NO
+
Required Packages:
+
compiz-fusion-0.8.4_2
+
Meta Package: Desktops
+
<nowiki>-</nowiki>------------------------------------
+
Description: Supported Desktop Environments for your PC-BSD system.
+
Icon: /var/db/pc-metapkgmanager/pkgsets/pcbsd/Desktops/pkg-icon.png
+
Desktop: NO
+
Category Entry
+
Meta Package: Development
+
<nowiki>-</nowiki>------------------------------------
+
Description: Development tools and utilities for your Desktop
+
Icon: /var/db/pc-metapkgmanager/pkgsets/pcbsd/Development/pkg-icon.png
+
Desktop: NO
+
--More--(byte 989)}}
+
  
<!--T:9-->
+
<!--T:34-->
To view which meta-packages are available in an alternate metapkgset, specify the metapkgset name. For example, to view the available ''warden'' meta-packages from your desktop, use this command:
+
The search utility can be used to find packages to install. Alternately, if you know the software category, expand it and check the software you would like to install. As you browse, you can select multiple packages. If you click an application name, its Package Information screen will display, as seen in the example in Figure 7.2c.
  
<!--T:10-->
+
<!--T:35-->
{{txtbox|box='''pc-metapkgmanager --pkgset warden list {{pipe}} more'''
+
[[File:package3.png|thumb|393px|'''Figure 7.2c: Viewing a Package's Information''']]
Meta Package: Apache
+
<nowiki>-</nowiki>------------------------------------
+
Description: The Apache Web Server
+
Icon: /var/db/pc-metapkgmanager/pkgsets/warden/Apache/pkg-icon.png
+
Parent: Web-Servers
+
Desktop: NO
+
Required Packages:
+
apache-2.2.22_6
+
Meta Package: BigBlueButton
+
<nowiki>-</nowiki>------------------------------------
+
Description: BigBlueButton enables universities and colleges to deliver
+
a high-quality learning experience to remote students.
+
Icon: /var/db/pc-metapkgmanager/pkgsets/warden/BigBlueButton/pkg-icon.png
+
Parent: Web-Apps
+
Desktop: NO
+
Required Packages:
+
mysql-server-5.5.27
+
bigbluebutton-0.71_3
+
Meta Package: Database-Servers
+
<nowiki>-</nowiki>------------------------------------
+
Description: Database Server Software
+
Icon: /var/db/pc-metapkgmanager/pkgsets/warden/Database-Servers/pkg-icon.png
+
Desktop: NO
+
Category Entry
+
Meta Package: Development
+
<nowiki>-</nowiki>------------------------------------
+
Description: Development tools and utilities
+
Icon: /var/db/pc-metapkgmanager/pkgsets/warden/Development/pkg-icon.png
+
--More--(byte 989)}}
+
  
<!--T:11-->
+
<!--T:36-->
To permanently change the default metapkgset between ''pcbsd'' and ''warden'', modify the ''PCBSD_METAPKGSET'' variable in ''/usr/local/etc/pcbsd.conf''.
+
The Package Information is divided into three tabs:
  
<!--T:12-->
+
<!--T:37-->
To determine if a meta-package is installed, specify its "Meta Package" name as shown in the output of the '''pc-metapkgmanager list''' command. For example, to see if the Awesome desktop is installed:
+
* '''Description:''' displays the name and version of the package, its download size, the URL to its homepage, and a brief description.
  
<!--T:13-->
+
<!--T:38-->
{{txtbox|box='''pc-metapkgmanager status Awesome'''
+
* '''Options:''' shows the options compiled into the package. Options will be listed as either ''on'' or ''off''.
The meta-pkg Awesome is not installed}}
+
  
<!--T:14-->
+
<!--T:39-->
To install the meta-package, use the '''add''' option and specify the meta-package name. Only the superuser can install meta-packages.  
+
* '''Dependencies:''' lists any additional packages that will be installed as dependencies of the selected package.
  
<!--T:15-->
+
<!--T:40-->
The following example installs the Awesome meta-package. '''pc-metapkgmanager''' will provide messages regarding the status of the installation:
+
Once you have made your selections, click the "Apply" button to install the selected software.
  
<!--T:16-->
+
===Update Installed Packages=== <!--T:43-->
{{txtbox|box='''pc-metapkgmanager add Awesome'''
+
Pending Meta-Package changes: 1
+
Package source: NET
+
Preparing to add: Awesome...
+
Checking for updates to old packages...
+
Installing Meta-Package: Awesome
+
Getting package list...
+
Pending package changes: 6
+
Downloading package: awesome-3.4.13
+
//usr/local/tmp/awesome-3.4.13.txz            100% of  704 kB  637 kBps
+
Downloading package: libev-4.11,1
+
//usr/local/tmp/libev-4.11,1.txz              100% of  117 kB  361 kBps
+
Downloading package: libxdg-basedir-1.1.1
+
//usr/local/tmp/libxdg-basedir-1.1.1.txz      100% of  11 kB  130 kBps
+
Downloading package: xcb-util-image-0.3.8
+
//usr/local/tmp/xcb-util-image-0.3.8.txz      100% of  18 kB  141 kBps
+
Downloading package: xcb-util-keysyms-0.3.8
+
//usr/local/tmp/xcb-util-keysyms-0.3.8.txz    100% of 8040  B  72 kBps
+
Downloading package: xcb-util-wm-0.3.8
+
//usr/local/tmp/xcb-util-wm-0.3.8.txz        100% of  35 kB  148 kBps
+
Installing package: awesome-3.4.13
+
Skipping installed package: libev-4.11,1
+
Skipping installed package: libxdg-basedir-1.1.1
+
Skipping installed package: xcb-util-image-0.3.8
+
Skipping installed package: xcb-util-keysyms-0.3.8
+
Skipping installed package: xcb-util-wm-0.3.8
+
The meta-pkg Awesome is installed
+
Finished Meta-Package: Awesome
+
Meta-Package changes finished!}}
+
  
<!--T:17-->
+
<!--T:46-->
To delete an installed meta-package, specify its name. Only the superuser can uninstall meta-packages. As seen in the following example, '''pc-metapkgmanager''' automatically determines which dependent packages are still needed by other applications and which can be safely removed.
+
As newer versions of installed packages become available, they are listed in the "Package Updates" tab of Package Manager. In the example shown in Figure 7.2d, three updates are available, representing package updates to the PC-BSD® utilities, the GUI versions of those utilities, and to the base packages installed with the operating system.
  
<!--T:18-->
+
<!--T:45-->
{{txtbox|box='''pc-metapkgmanager del Awesome'''
+
[[File:Package4.png|thumb|393px|'''Figure 7.2d: Package Updates Available''']]
Pending Meta-Package changes: 1
+
Removing Meta-Package: Awesome
+
Getting package list...
+
Pending package changes: 66
+
Removing: awesome-3.4.13
+
Skipping Meta-Required: giflib-4.2.0_2
+
Removing: libev-4.11,1
+
Removing: libxdg-basedir-1.1.1
+
Removing: xcb-util-image-0.3.8
+
Removing: xcb-util-keysyms-0.3.8
+
Removing: xcb-util-wm-0.3.8
+
Skipping Required: bitstream-vera-1.10_5
+
Skipping Required: cairo-1.10.2_4,2
+
<snip output of other required packages>
+
The meta-pkg Awesome is not installed
+
Meta-Package changes finished!}}
+
  
=== Upgrading Meta-Packages === <!--T:19-->
+
<!--T:47-->
 +
Updates are added using the following target schedule:
  
<!--T:20-->
+
<!--T:48-->
'''pc-metapkgmanager''' can also be used to determine if any meta-packages are out of date and to update meta-packages. To determine if any meta-packages have newer versions:
+
* if you are running RELEASE, any changes to the packages that come with the operating system as well as any packages installed in Basic View show up around the 1st and 15th of each month
  
<!--T:21-->
+
<!--T:49-->
{{txtbox|box='''pc-metapkgmanager checkup'''
+
* if you are running STABLE, any changes to the packages that come with the operating system as well as any packages installed in Basic View show up around the 5th and 20th of each month
All packages are up to date!}}
+
  
<!--T:22-->
+
<!--T:50-->
In this example, all meta-packages are at their latest versions. If any were out of date, you would instead receive the message "The following package updates are available:" followed by the names of the out-of-date meta-packages.
+
* if you installed any FreeBSD packages from Advanced View, these show up whenever a new version becomes available
  
<!--T:23-->
+
<!--T:51-->
To update a meta-package, use the '''pc-metapkgmanager update''' command followed by the name of the specific meta-package or the word '''all''' to update all out-of-date meta-packages.
+
Note that these are target dates which may slip by a few days if the build server experiences problems building packages from ports.
  
<!--T:24-->
+
<!--T:52-->
'''pc-metapkgmanager''' records any error messages to ''/tmp/.pc-metamanager.log''. This log file automatically rotates whenever it reaches 5MB in size.
+
To update to the newest versions of packages, click the "Update packages" button.
  
 
<!--T:25-->
 
<!--T:25-->
 
<noinclude>
 
<noinclude>
{{refheading}}
+
<!-- {{refheading}} --><!-- uncomment when citelink is used on the page -->
 
[[category:Meta Package Manager]]
 
[[category:Meta Package Manager]]
 
[[category:Maintaining and Extending PC-BSD®]]
 
[[category:Maintaining and Extending PC-BSD®]]

Latest revision as of 23:31, 15 December 2013


Contents


PC-BSD® provides a graphical Package Manager utility to Control Panel which can be used to manage installed desktops and system components. It can also be used as a front-end to the FreeBSD packages collection. If you prefer to start this utility from the command line, type pc-su pc-pkgmanager.

Figure 7.2a shows Package Manager with its categories expanded. This sample system uses NVIDIA for graphics and the default desktop manager of KDE was kept during the installation. This default view is known as Basic View.

Figure 7.2a: Viewing Installed Components

[edit] Install System Components

To install or uninstall components, check the boxes for the components that you wish to install, uncheck the boxes for the components that you wish to remove, then click the "Apply" button to perform the requested operations.

[edit] Install FreeBSD Packages

To instead manage FreeBSD packages, click View → Advanced to change to Advanced View. This view is shown in Figure 7.2b with the editors category expanded.

Figure 7.2b: Managing FreeBSD Packages

The search utility can be used to find packages to install. Alternately, if you know the software category, expand it and check the software you would like to install. As you browse, you can select multiple packages. If you click an application name, its Package Information screen will display, as seen in the example in Figure 7.2c.

Figure 7.2c: Viewing a Package's Information

The Package Information is divided into three tabs:

  • Description: displays the name and version of the package, its download size, the URL to its homepage, and a brief description.
  • Options: shows the options compiled into the package. Options will be listed as either on or off.
  • Dependencies: lists any additional packages that will be installed as dependencies of the selected package.

Once you have made your selections, click the "Apply" button to install the selected software.

[edit] Update Installed Packages

As newer versions of installed packages become available, they are listed in the "Package Updates" tab of Package Manager. In the example shown in Figure 7.2d, three updates are available, representing package updates to the PC-BSD® utilities, the GUI versions of those utilities, and to the base packages installed with the operating system.

Figure 7.2d: Package Updates Available

Updates are added using the following target schedule:

  • if you are running RELEASE, any changes to the packages that come with the operating system as well as any packages installed in Basic View show up around the 1st and 15th of each month
  • if you are running STABLE, any changes to the packages that come with the operating system as well as any packages installed in Basic View show up around the 5th and 20th of each month
  • if you installed any FreeBSD packages from Advanced View, these show up whenever a new version becomes available

Note that these are target dates which may slip by a few days if the build server experiences problems building packages from ports.

To update to the newest versions of packages, click the "Update packages" button.

Other languages:German 30% • ‎English 100% • ‎French 7%
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox