1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4
<!ENTITY % globalent SYSTEM "../../../libs/global.ent">
6
<!ENTITY % cdo-C SYSTEM "../../../libs/cdo-C.ent">
8
<!ENTITY % kde SYSTEM "../../libs/kde.ent">
10
<!ENTITY % kde-menus-C SYSTEM "../../libs/kde-menus-C.ent">
12
<!ENTITY % kde-general SYSTEM "/usr/share/apps/ksgmltools2/customization/obsolete/general.entities">
14
<!ENTITY % xinclude SYSTEM "../../../libs/xinclude.mod">
16
<!ENTITY language "en">
18
<article id="add-applications" status="complete">
20
<title>Adding, Removing and Updating Applications</title>
24
This chapter is a complete guide to adding, removing and updating
25
applications on a Kubuntu system.
31
<title>Universe and Multiverse Repositories by Default</title>
33
Now with Kubuntu &distro-rev; the <emphasis>Universe</emphasis> and
34
<emphasis>Multiverse</emphasis> repositories are enabled by default.
39
<sect1 id="intro" status="complete">
40
<title>Introduction</title>
43
There are several ways to manage your applications in Kubuntu. In
44
order to add or remove applications you need to use a
45
<emphasis>package manager</emphasis>. The following package
46
managers are described in this chapter:
50
<title>Graphical Clients</title>
52
<term><application>Add/Remove Programs</application></term>
55
(&menuar;) - The simplest way to add or remove programs.
61
<term><application>Adept</application></term>
64
(&menuadept;) - A graphical program providing an advanced way of managing
72
<title>Command Line Utilities</title>
74
<term><application>apt</application></term>
77
(Advanced Package Tool) is a management system for software packages.
83
<term><application>Aptitude</application></term>
86
A text-based, high-level interface to <application>apt</application>.
93
You may also wish to increase the number of programs available to
94
install through your package managers. Not all the programs that exist for
95
Kubuntu are installed by default.
99
Finally, this chapter explains how to update your system.
104
You can only have one package management application running at a time. For
105
example, if you are running <application>Add/Remove Programs</application> and
106
try to launch <application>Adept</application>, it will fail with an error.
107
Close the running application before you relaunch the new one.
113
<!-- ADD/REMOVE PROGRAMS -->
114
<sect1 id="addremove" status="complete">
115
<title>Add/Remove Programs</title>
118
<application>Add/Remove Programs</application> is a simple graphical way of
119
installing and removing applications in Kubuntu. To launch
120
<application>Add/Remove Programs</application>, choose &menuar; from the desktop
126
Running <application>Add/Remove Programs</application> requires administrative
132
To install new applications select the category on the left, then check the box
133
of the applications you want to install. Click <guimenu>Apply</guimenu> and your
134
chosen programs will be downloaded and installed automatically, as well as
135
installing any additional applications that are required. The default selection
136
is restricted to the KDE suite, but GNOME applications can be installed by
137
selecting them from the dropdown menu at the top.
141
Alternatively, if you know the name of the program you want, use the
142
<guibutton>Search</guibutton> tool at the top.
148
<sect1 id="adept" status="complete">
149
<title>Adept Package Manager</title>
152
&appshort; is a graphical frontend to the <application>APT</application> package
153
management system for the K Desktop Environment (KDE). &appshort; provides an
154
easy-to-use interface with which users can perform software management
159
<title>Starting &appshort;</title>
160
<varlistentry><term>From KMenu</term>
163
Go to &menuadept;. When prompted for a password type your user password and
164
press <guibutton>OK</guibutton>.
169
<varlistentry><term>From the command line</term>
172
From the command line type <userinput>kdesu adept_manager</userinput> and press
173
<keycap>Enter</keycap>. When prompted for a password type your user password
174
and press <guibutton>OK</guibutton>.
181
Both methods require that you enter your password. This will run &appshort; with
182
root privileges which will be required in order to perform the requested
183
operations. It is therefore advised that you use &appshort; with caution since
184
improper usage could lead to the removal, deletion, or corruption of software
185
packages that are required to preserve system integrity.
189
<title>Installing an application using the Adept Manager</title>
192
From within the <application>Adept Manager</application> utilize the
193
<guilabel>Search</guilabel> text box underneath the toolbar by typing in what
194
you are searching for.
200
Once you have located the application you wish to install, select the package
201
and press the <guibutton>Request Install</guibutton> button. You can also
202
<mousebutton>right</mousebutton> click on the package and select
203
<guilabel>Request Install</guilabel> from the menu.
209
When you have the application(s) selected for installation, press the
210
<guibutton>Apply Changes</guibutton> button in the toolbar.
216
After installation has completed close <application>Adept Manager</application>.
224
<sect1 id="apt" status="complete">
228
<application>APT</application> (Advanced Packaging Tool) is a powerful package
229
management system, on which the graphical programs <application>Add/Remove
230
Programs</application> and <application>Adept</application> are based.
231
<application>APT</application> automatically handles dependencies and performs
232
other operations on system packages to allow the installation of the desired
238
Running <application>APT</application> requires administrative privileges.
243
Some common commands that can be used with <application>APT</application>:
250
<screen>sudo apt-get install <emphasis>packagename</emphasis></screen>
257
<screen>sudo apt-get remove <emphasis>packagename</emphasis></screen>
264
<screen>apt-cache search <emphasis>keyword</emphasis></screen>
270
Retrieve new lists of available packages:
271
<screen>sudo apt-get update</screen>
277
Upgrade system with available updates:
278
<screen>sudo apt-get dist-upgrade</screen>
284
List further commands and options:
285
<screen>apt-get help</screen>
292
For further information about the use of <application>APT</application>, you can
293
read the comprehensive <ulink url="&debian-apt;">Debian APT User Manual</ulink>.
300
<sect1 id="aptitude" status="complete">
301
<title>Aptitude</title>
304
<application>Aptitude</application> is another command line front end to
305
<application>apt</application>. <application>Aptitude</application> allows you
306
to interactively choose packages for removal or installation from a list of
307
available packages. <application>Aptitude</application> allows for a more
308
advanced approach and at times a more functional approach to managing
309
applications via the command line.
314
<!-- MANUAL INSTALLATION -->
315
<sect1 id="manual-install" status="complete">
316
<title>Manual Installation</title>
319
Although the preferred method of installing programs is via the package managers
320
described in <xref linkend="add-applications"/>, you can also download and
321
install individual package files containing software. There are many different
322
kinds of Linux package files. Most of these are associated with the package
323
managers of specific Linux distributions.
327
If you find a packaged application that you wish to install, it is recommended
328
that you check if there is a native Kubuntu package of the application available
329
through a package manager, and that you install that version instead. This
330
guarantees that the program is completely compatible with your system. If there
331
is no package available through the package manager, you can install it
332
manually. The installation procedure depends on the type of package file.
335
<sect2 id="debfile-install" status="complete">
336
<title>Install/Uninstall .deb files</title>
339
The package files associated with Kubuntu have the <emphasis>.deb</emphasis>
340
suffix because of Kubuntu's close relation to the Debian GNU/Linux distribution.
341
You can download and install individual <emphasis>.deb</emphasis> files. You
342
will need administrative privileges to do this.
346
To install a .deb file, simply <mousebutton>Left</mousebutton> click on the
347
.deb file to initiate the installation process. You will be prompted for your
348
password in order to gain the necessary privileges.
353
<sect2 id="alien" status="complete">
354
<title>Convert .rpm files to .deb files</title>
357
Another type of package files is Red Hat Package
358
Manager Files which have the <emphasis>.rpm</emphasis>
359
suffix. It is not recommended to install these on an
360
Kubuntu system. In almost all cases, a native Kubuntu
361
<emphasis>.deb</emphasis> package is available.
362
However, if absolutely necessary, an
363
<emphasis>.rpm</emphasis> file can be converted to a
364
<emphasis>.deb</emphasis> package using the program
365
<application>alien</application>.
369
<title>Installation of Alien</title>
372
Open <application>Adept Manager</application> by going to &menuadept;.
378
When prompted to enter a password, enter your user password and press
379
<guibutton>OK</guibutton>.
385
Locate the <guilabel>Search</guilabel> box just under the buttons at the top of
386
the window and type <userinput>alien</userinput>.
392
Locate the package named <application>alien</application> and
393
select it. Press the <guibutton>Request Install</guibutton> button.
399
Locate the the <guibutton>Apply Changes</guibutton> button in the top toolbar
406
Once the installation has completed close <application>Adept
407
Manager</application>.
413
<title>Using alien</title>
417
Open <application>Konsole</application> by going to &menukonsole;.
423
At the command prompt type <userinput>sudo alien package_file.rpm</userinput>
424
and press the <keycap>Enter</keycap> key.
430
For more information on <application>alien</application>, type <userinput>man
431
alien</userinput> at the command prompt. When complete, press
439
<sect2 id="tarball-install" status="complete">
440
<title>Install from Source</title>
443
Files with the <emphasis>.tar.gz</emphasis> or <emphasis>.tar.bz2</emphasis>
444
suffix are package files known as <emphasis>tarballs</emphasis> or
445
<emphasis>source</emphasis> packages which are widely used in Linux. If there is
446
no native Kubuntu package available in any of the Kubuntu repositories, you can
447
try to compile the package from source. For tips on compiling software, look at
448
the <ulink url="https://wiki.ubuntu.com/CompilingSoftware">Compiling
449
Software</ulink> page on the Ubuntu Wiki.
455
<!-- EXTRA REPOSITORIES -->
456
<sect1 id="repos" status="complete">
457
<title>Managing Repositories</title>
459
<sect2 id="repos-info" status="complete">
460
<title>What are Repositories?</title>
463
There are thousands of programs freely available to install on Kubuntu. These
464
programs are stored in software archives (<emphasis>repositories</emphasis>) and
465
are made available for installation over the Internet. This makes it very easy
466
to install new programs in Kubuntu, and it is also very secure, because each
467
program you install is built specially for Kubuntu and checked before it is
468
installed. To organize the software, Kubuntu repositories are categorized
471
<listitem><para>Main</para></listitem>
472
<listitem><para>Restricted</para></listitem>
473
<listitem><para>Universe</para></listitem>
474
<listitem><para>Multiverse</para></listitem>
479
The rationale used to determine which software goes into which category is based
486
The level of support software development teams provide for a program
492
The level of compliance the program has to the <ulink
493
url="&ubuntu-philosophy;">Free Software Philosophy</ulink>
499
You can find more information about the Repositories available on the <ulink
500
url="http://www.ubuntu.com/ubuntu/components">Ubuntu website</ulink>.
504
The standard Kubuntu Install CD contains some software from the
505
<emphasis>Main</emphasis> and <emphasis>Restricted</emphasis> categories. Once
506
your system is made aware of the Internet-based locations for these
507
repositories, many more programs are made available for installation. Using the
508
software package management tools already installed on your system, you can
509
search for, install and update any piece of software directly over the Internet,
510
without the need for the CD.
516
<sect2 id="repos-addremove" status="complete">
517
<title>Adding or Removing Repositories</title>
519
<para>To enable extra repositories:</para>
523
<para>Start <application>Adept</application> by choosing &menuadept;.</para>
530
<guimenu>Adept</guimenu>
531
<guimenuitem>Manage Repositories</guimenuitem>
533
in the <application>Adept</application> package manager window.
539
To add an extra repository, insert the repository information in the
540
<guilabel>New Repository:</guilabel> text box like <screen>deb
541
http://repository_location feisty main</screen> and then press the
542
<guibutton>Add</guibutton> button. To finalize your additions press the
543
<guibutton>Apply</guibutton> button and then the <guibutton>Close</guibutton>
550
To remove a repository, select the repository you want to remove and then press
551
the <guibutton>Reset</guibutton> button. Once complete go ahead and press the
552
<guibutton>Close</guibutton> button.
562
<sect1 id="updating" status="complete">
563
<title>Updating</title>
566
Sometimes the Kubuntu developers release feature and security updates for
567
applications and packages within the Kubuntu system.
571
When these updates are available, Kubuntu will inform you with a red warning
572
icon in the system tray. To update your system, click the red button, enter your
573
password and click <guibutton>Fetch List of Updates</guibutton>.
577
The <application>Adept Updater</application> program will list the available
578
updates: to download and install these updates click <guibutton>Apply
579
Updates</guibutton>. Kubuntu will then download and install the available
580
updates from the Internet.
584
When <application>Adept Updater</application> has finished updating your system,
585
close the pop-up window by clicking the <guibutton>Quit</guibutton> button.
589
<para>After installing some important updates, it may be necessary to
590
restart your computer. If so, Kubuntu will inform you with a pop up and an icon