~mistrynitesh/kubuntu-docs/fixes-two-bugs

« back to all changes in this revision

Viewing changes to docs/manage-software/C/manage-software.xml

  • Committer: Richard A. Johnson
  • Date: 2010-03-26 21:38:03 UTC
  • mfrom: (134.5.24 kubuntuDocs)
  • Revision ID: nixternal@ubuntu.com-20100326213803-s2pruadnwhwilsj2
 * Merged in Carl Symon's edits
 * Fixed up some tag issues to get everything to validate now
 * Removed status="draft" from all of the docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
%kde-menus-C;
8
8
<!ENTITY language "en">
9
9
]>
10
 
<!-- FIXME: sections need to be cleaned up
11
 
            - add graphical section and put kpackagekit in it
12
 
            - add cli section and put apt and aptitude in it
13
 
-->
14
 
<article id="manage-software" status="draft">
 
10
<article id="manage-software">
15
11
<articleinfo>
16
12
<title>Software Management In &kubuntu;</title>
17
13
&legalnotice;
18
14
<abstract>
19
15
<para>
20
 
This chapter presents how to manage and update software on Kubuntu
 
16
This chapter describes managing and updating software in &kubuntu;.
21
17
</para>
22
18
</abstract>
23
19
</articleinfo>
27
23
<title>Introduction</title>
28
24
 
29
25
<para>
30
 
There are several ways to manage your applications in Kubuntu. In
31
 
order to add or remove applications you need to use a
32
 
<emphasis>package manager</emphasis>. The following package
33
 
managers are described in this chapter:
 
26
There are several ways to manage applications in &kubuntu;. A convenient way to
 
27
add or remove applications is with a <emphasis>package manager</emphasis>. The
 
28
following package managers are described in this chapter:
34
29
</para>
35
30
<variablelist>
36
31
<title>Graphical Clients</title>
38
33
<term><application>KPackageKit</application></term>
39
34
<listitem>
40
35
<para>
41
 
A graphical program providing an advanced way of managing application
42
 
installation and removal. <application>KPackageKit</application> can be started
43
 
by going to &menukpackagekit;.
 
36
An advanced program with a graphical user interface <acronym>(GUI)</acronym> for
 
37
installing and removing applications. <application>KPackageKit</application> can
 
38
be started by going to &menukpackagekit;.
44
39
</para>
45
40
</listitem>
46
41
</varlistentry>
48
43
<variablelist>
49
44
<title>Command Line Utilities</title>
50
45
<varlistentry>
51
 
<term><application>apt</application></term>
 
46
<term><application>APT</application></term>
52
47
<listitem>
53
48
<para>
54
 
(Advanced Package Tool) is a management system for software packages.
 
49
(Advanced Package Tool) is a complete system for software package management.
55
50
</para>
56
51
</listitem>
57
52
</varlistentry>
66
61
</varlistentry>
67
62
</variablelist>
68
63
<para>
69
 
You may also wish to increase the number of programs available to
70
 
install through your package managers. Not all the programs that exist for
71
 
Kubuntu are installed by default. This can be done to enhance your system 
72
 
functionality by including more and new softwares.
 
64
It is possible to increase the number of programs that can be installed with
 
65
package managers. The default installation does not include all the programs
 
66
that can be used with &kubuntu;. System functionality can be enhanced by
 
67
including more applications and newer software. This chapter describes how to
 
68
add software repositories.
73
69
</para>
74
70
<para>
75
 
Finally, this chapter explains how to update your system.
 
71
The software that comprises &kubuntu; is being improved continuously. With an
 
72
Internet connection and &kubuntu; software updating, the latest improvements and
 
73
security fixes can be applied to a system easily. This chapter explains how to
 
74
perform update. 
76
75
</para>
77
76
</sect1>
78
77
 
79
 
<sect1 id="kpackagekit">
80
 
<title><application>KPackageKit</application></title>
 
78
<!-- KPackagekit section added :) -->
 
79
<sect1 id="kpackagekit" xreflabel="KPackageKit" status="complete">
 
80
<title>KPackageKit</title>
81
81
<para>
82
82
<example>
83
 
<title>The KPackageKit</title>
 
83
<title>KPackageKit</title>
84
84
<mediaobject>
85
85
<imageobject>
86
86
<imagedata fileref="../../images/kpackagekit.png" format="PNG"/>
89
89
</example>
90
90
</para>
91
91
 
92
 
<para><application>Software Management</application>(KPackageKit) is a graphical tool for
93
 
installing software on your Kubuntu system.  Software Management enables you to manage
94
 
your software and your software repositories.</para>
 
92
<para><application>Software Management</application> (KPackageKit) is a
 
93
graphical tool for installing new software on a &kubuntu; system.  Software
 
94
Management also provides tools for managing software and software repositories.
 
95
Installing and removing software is password-protected to help prevent errors
 
96
and potentially dangerous actions that would affect system operation.
 
97
</para>
 
98
 
95
99
<para> 
96
 
Installing new software can be accomplished by following the steps below:
 
100
Install new software with the following steps:
97
101
</para>
98
102
<procedure>
99
103
<step>
100
104
<para>
101
 
Start KpackageKit through the Kickoff Application Launcher at &menukpackagekit;.
102
 
</para>
103
 
</step>
104
 
<step>
105
 
<para>
106
 
Now search for an application that you need to install in the search box (top-right corner)
107
 
</para>
108
 
</step>
109
 
<step>
110
 
<para>
111
 
The application will show up in the white space below, and now all that needs to be done is
112
 
to click on the down-pointing arrow next to that software and then click <guilabel>Apply</guilabel>
113
 
</para>
114
 
</step>
115
 
<step>
116
 
<para>
117
 
Now KpackageKit might ask you to install some dependencies that may exist, so install those and 
118
 
your software will be ready to use
 
105
Start KpackageKit with &menukpackagekit;.
 
106
</para>
 
107
</step>
 
108
 
 
109
<step>
 
110
<para>
 
111
Search for the application with the search box and filters at the top of the
 
112
window.
 
113
</para>
 
114
</step>
 
115
 
 
116
<step>
 
117
<para>
 
118
The application will show up in the large white space below the search area.
 
119
Click on the down arrow symbol next to the software to be installed. The arrow
 
120
will change color. Click <guilabel>Apply</guilabel> to start the
 
121
installation process.
 
122
</para>
 
123
</step>
 
124
 
 
125
<step>
 
126
<para>
 
127
KpackageKit might provide information about required dependencies. Acknowledge
 
128
this information, and the required packages will begin downloading. When the
 
129
installation process is complete, the software will be ready to use. It is
 
130
rarely necessary to restart the system after software installation or update.
119
131
</para>
120
132
</step>
121
133
</procedure>
122
134
<para> 
123
 
KPackageKit provides you with an easy method to remove the software you don't need. To do so:
 
135
KPackageKit provides an easy method to remove the software that is no longer
 
136
needed. To remove an application:
124
137
</para>
125
138
<procedure>
126
139
<step>
127
140
<para>
128
 
Start KpackageKit through the Kickoff Application Launcher at &menukpackagekit;.
129
 
</para>
130
 
</step>
131
 
<step>
132
 
<para>
133
 
Search for the application in the search box, and then click on the cross next to the 
134
 
software
135
 
</para>
136
 
</step>
137
 
<step>
138
 
<para>
139
 
Now click <guilabel>Apply</guilabel> and KPackageKit will remove the software for you
 
141
Start KpackageKit with &menukpackagekit;.
 
142
</para>
 
143
</step>
 
144
 
 
145
<step>
 
146
<para>
 
147
Search for the application in the search box, and then click on the X in the
 
148
"Action" column next to the software title.
 
149
</para>
 
150
</step>
 
151
 
 
152
<step>
 
153
<para>
 
154
Click <guilabel>Apply</guilabel> and KPackageKit will remove the application.
140
155
</para>
141
156
</step>
142
157
</procedure>
147
162
<title>APT</title>
148
163
 
149
164
<para>
150
 
<application>APT</application> (Advanced Packaging Tool) is a powerful package
151
 
management system, on which the graphical programs <application>Software Management</application> are based.
 
165
<application><acronym>APT</acronym></application> (Advanced Packaging Tool) is a
 
166
powerful package management system, which is the basis for the graphical
 
167
<application>Software Management</application> application.
152
168
<application>APT</application> automatically handles dependencies and performs
153
 
other operations on system packages to allow the installation of the desired
154
 
packages.
 
169
other package operations that are required for package installation.
155
170
</para>
156
171
<note>
157
172
<para>
158
173
Running <application>APT</application> requires administrative privileges.
 
174
Entering commands with "sudo" generates a password prompt. Several of the
 
175
commands below will not run without sudo. 
159
176
</para>
160
177
</note>
161
178
<para>
162
 
Some common commands that can be used with <application>APT</application>:
 
179
Common commands used with <application>APT</application> are:
163
180
</para>
164
181
<itemizedlist>
165
182
<listitem>
176
193
</listitem>
177
194
<listitem>
178
195
<para>
179
 
Remove package dependencies:
 
196
Remove package dependencies that are no longer needed:
180
197
<screen>sudo apt-get autoremove</screen>
181
198
</para>
182
199
</listitem>
188
205
</listitem>
189
206
<listitem>
190
207
<para>
191
 
Retrieve new lists of available packages:
 
208
Retrieve the current lists of available packages:
192
209
<screen>sudo apt-get update</screen>
193
210
</para>
194
211
</listitem>
195
212
<listitem>
196
213
<para>
197
 
Upgrade system with available updates:
198
 
<screen>sudo apt-get dist-upgrade</screen>
 
214
Install the latest available updates for the applications currently installed:
 
215
<screen>sudo apt-get upgrade</screen>
199
216
</para>
200
217
</listitem>
201
218
<listitem>
207
224
</itemizedlist>
208
225
<tip>
209
226
<para>
210
 
For further information about the use of <application>APT</application>, you can
211
 
read the comprehensive <ulink url="&debian-apt;">Debian APT User Manual</ulink>.
 
227
For further information about the use of <application>APT</application>, read
 
228
the comprehensive <ulink url="&debian-apt;">Debian APT User Manual</ulink>.
212
229
</para>
213
230
</tip>
214
231
 
219
236
<title>Aptitude</title>
220
237
 
221
238
<para>
222
 
<application>Aptitude</application> is another command line front end to
223
 
<application>apt</application>. <application>Aptitude</application> allows you
224
 
to interactively choose packages for removal or installation from a list of
225
 
available packages. <application>Aptitude</application> allows for a more
226
 
advanced approach and at times a more functional approach to managing
227
 
applications via the command line.
 
239
<application>Aptitude</application> is a command line front-end to
 
240
<application>APT</application>. <application>Aptitude</application> allows
 
241
for interactive package selection to remove, update or install packages.
 
242
<application>Aptitude</application> is an advanced package management system,
 
243
with more control and capability than <application>APT</application> as a
 
244
command line tool.
228
245
</para>
229
246
</sect1>
230
247
 
233
250
<title>Manual Installation</title>
234
251
 
235
252
<para>
236
 
Although the preferred method of installing programs is via the package managers
237
 
described in <xref linkend="manage-software"/>, you can also download and
238
 
install individual package files containing software. There are many different
239
 
kinds of Linux package files. Most of these are associated with the package
240
 
managers of specific Linux distributions. 
 
253
Although the preferred method of installing programs is with the package
 
254
manager described in <xref linkend="kpackagekit"/>, individual software
 
255
package files can be downloaded and installed. Several kinds of package files
 
256
are available for Linux systems. Generally, these file types are associated with
 
257
the package managers of specific Linux distributions.
241
258
</para>
 
259
 
242
260
<para>
243
 
If you find a packaged application that you wish to install, it is recommended
244
 
that you check if there is a native Kubuntu package of the application available
245
 
through a package manager, and that you install that version instead. This
246
 
guarantees that the program is completely compatible with your system. If there
247
 
is no package available through the package manager, you can install it
248
 
manually. The installation procedure depends on the type of package file.
 
261
To install a particular application, it is preferable to select a &kubuntu;
 
262
package of the application, and install it with a package manager. This ensures
 
263
that the program is compatible with other software on the system. If there
 
264
is no version of the package available through a package manager, it may be
 
265
possible to install it manually. The installation procedure depends on the type
 
266
of package file.
249
267
</para>
250
268
 
251
269
<sect2 id="debfile-install" status="complete">
252
270
<title>Install/Uninstall .deb files</title>
253
271
 
254
272
<para>
255
 
The package files associated with Kubuntu have the <emphasis>.deb</emphasis>
256
 
suffix because of Kubuntu's close relation to the Debian GNU/Linux distribution.
257
 
You can download and install individual <emphasis>.deb</emphasis> files. You
258
 
will need administrative privileges to do this.
 
273
The package files associated with &kubuntu; have the <emphasis>.deb</emphasis>
 
274
suffix because of &kubuntu;&apos;s close relationship with the Debian
 
275
GNU/Linux distribution. Individual <emphasis>.deb</emphasis> files can be
 
276
downloaded and installed. Administrative privileges are required to do this.
259
277
</para>
260
278
<para>
261
279
To install a .deb file, simply <mousebutton>Left</mousebutton> click on the
262
 
.deb file to initiate the installation process. You will be prompted for your
263
 
password in order to gain the necessary privileges.
 
280
.deb file to initiate the installation process. A prompt will appear for a
 
281
password associated with the necessary administrative privilege.
264
282
</para>
265
283
</sect2>
266
284
 
268
286
<title>Convert .rpm files to .deb files</title>
269
287
 
270
288
<para>
271
 
Another type of package files is Red Hat Package
272
 
Manager Files which have the <emphasis>.rpm</emphasis>
273
 
suffix. It is not recommended to install these on an
274
 
Kubuntu system. In almost all cases, a native Kubuntu
275
 
<emphasis>.deb</emphasis> package is available.
276
 
However, if absolutely necessary, an
277
 
<emphasis>.rpm</emphasis> file can be converted to a
278
 
<emphasis>.deb</emphasis> package using the program
279
 
<application>alien</application>.
 
289
Red Hat Package Manager files have the <emphasis>.rpm</emphasis>
 
290
suffix. It is not recommended that these be installed on a &kubuntu; system. In
 
291
almost all cases, a native &kubuntu; <emphasis>.deb</emphasis> version of
 
292
the package is available. However, if necessary, an <emphasis>.rpm</emphasis>
 
293
file can be converted to a <emphasis>.deb</emphasis> package using a program
 
294
called <application>alien</application>.
280
295
</para>
281
296
<procedure>
282
 
<title>Installation of Alien</title>
 
297
<title>Installing Alien</title>
283
298
<step>
284
299
<para>
285
300
Open <application>Software Management</application> by going to &menukpackagekit;.
287
302
</step>
288
303
<step>
289
304
<para>
290
 
When prompted to enter a password, enter your user password and press
291
 
<guibutton>OK</guibutton>.
292
 
</para>
293
 
</step>
294
 
<step>
295
 
<para>
296
 
Locate the <guilabel>Search</guilabel> box just under the buttons at the top of
297
 
the window and type <userinput>alien</userinput>.
 
305
Enter <userinput>alien</userinput> in the <guilabel>Search</guilabel> box
 
306
near the top of the window.
298
307
</para>
299
308
</step>
300
309
<step>
301
310
<para>
302
311
Locate the package named <application>alien</application> and
303
 
select it. Press the <guibutton>Request Install</guibutton> button.
304
 
</para>
305
 
</step>
306
 
<step>
307
 
<para>
308
 
Locate the the <guibutton>Apply Changes</guibutton> button in the top toolbar
309
 
and press it.
310
 
</para>
311
 
</step>
312
 
<step>
313
 
<para>
314
 
Once the installation has completed close <application>Software Management</application>.
 
312
select it. Press the <guibutton>down arrow</guibutton> button. The arrow will
 
313
change color.
 
314
</para>
 
315
</step>
 
316
 
 
317
<step>
 
318
<para>
 
319
Press the <guibutton>Apply</guibutton> button, and
 
320
the <guibutton>Install Now</guibutton> button on the following screen. There
 
321
may be additional packages required to be installed as dependencies. If so,
 
322
click <guibutton>OK</guibutton>.
 
323
</para>
 
324
</step>
 
325
 
 
326
<step>
 
327
<para>
 
328
If prompted, enter the proper password and press <guibutton>OK</guibutton>.
 
329
</para>
 
330
</step>
 
331
 
 
332
<step>
 
333
<para>
 
334
Once the installation has completed, close <application>Software
 
335
Management</application>.
315
336
</para>
316
337
</step>
317
338
</procedure>
324
345
</step>
325
346
<step>
326
347
<para>
327
 
At the command prompt type <userinput>sudo alien package_file.rpm</userinput>
 
348
At the command prompt, type <userinput>sudo alien package_file.rpm</userinput>
328
349
and press the <keycap>Enter</keycap> key.
329
350
</para>
330
351
</step>
332
353
<para>
333
354
For more information on <application>alien</application>, type <userinput>man
334
355
alien</userinput> at the command prompt. When complete, press
335
 
<keycap>q</keycap>.
 
356
<keycap>q</keycap> to exit.
336
357
</para>
337
358
</step>
338
359
</procedure>
345
366
Files with the <emphasis>.tar.gz</emphasis> or <emphasis>.tar.bz2</emphasis>
346
367
suffix are package files known as <emphasis>tarballs</emphasis> or
347
368
<emphasis>source</emphasis> packages which are widely used in Linux. If there is
348
 
no native Kubuntu package available in any of the Kubuntu repositories, you can
349
 
try to compile the package from source. For tips on compiling software, look at
350
 
the <ulink url="https://wiki.ubuntu.com/CompilingSoftware">Compiling
 
369
no native &kubuntu; package available in any of the repositories, it may be
 
370
possible to compile and install the package from source. For tips on compiling
 
371
software, look at the <ulink
 
372
url="https://wiki.ubuntu.com/CompilingSoftware">Compiling
351
373
Software</ulink> page on the Ubuntu Wiki.
352
374
</para>
353
375
</sect2>
361
383
<title>What are Repositories?</title>
362
384
 
363
385
<para>
364
 
There are thousands of programs freely available to install on Kubuntu. These
 
386
Thousands of programs are freely available to install on &kubuntu;. These
365
387
programs are stored in software archives (<emphasis>repositories</emphasis>) and
366
 
are made available for installation over the Internet. This makes it very easy
367
 
to install new programs in Kubuntu, and it is also very secure, because each
368
 
program you install is built specially for Kubuntu and checked before it is
 
388
are made available for installation over the Internet. This makes it easy
 
389
to install new programs in &kubuntu;. It is also secure, because each
 
390
program is built specifically for &kubuntu; and is checked thoroughly before it
 
391
is installed. &kubuntu; repositories are categorized into four groups:
 
392
</para>
 
393
 
369
394
<itemizedlist>
370
395
<listitem><para>Main</para></listitem>
371
396
<listitem><para>Restricted</para></listitem>
372
397
<listitem><para>Universe</para></listitem>
373
398
<listitem><para>Multiverse</para></listitem>
374
399
</itemizedlist>
375
 
</para>
376
400
<para>
377
 
The rationale used to determine which software goes into which category is based
378
 
on two factors:
 
401
Two factors are used to determine categories:
379
402
</para>
380
403
<itemizedlist>
381
404
<listitem>
382
405
<para>
383
 
The level of support software development teams provide for a program
 
406
The level of support that software development teams provide for a program
384
407
</para>
385
408
</listitem>
386
409
<listitem>
391
414
</listitem>
392
415
</itemizedlist>
393
416
<para>
394
 
You can find more information about the Repositories available on the <ulink
 
417
More information about the Repositories is available on the <ulink
395
418
url="http://www.ubuntu.com/ubuntu/components">Ubuntu website</ulink>.
396
419
</para>
397
420
<para>
398
 
The standard Kubuntu Install CD contains some software from the
 
421
The standard &kubuntu; LiveCD contains some software from the
399
422
<emphasis>Main</emphasis> and <emphasis>Restricted</emphasis> categories. Once
400
 
your system is made aware of the Internet-based locations for these
401
 
repositories, many more programs are made available for installation. Using the
402
 
software package management tools already installed on your system, you can
403
 
search for, install and update any piece of software directly over the Internet,
404
 
without the need for the CD.
 
423
a system has information about the Internet-based locations for these
 
424
repositories, more programs are available for installation. Using the
 
425
software package management tools installed by default, it is possible to
 
426
discover, install and update any piece of software directly over the Internet,
 
427
without the need for the LiveCD.
405
428
</para>
406
429
</sect2>
407
430
 
425
448
</step>
426
449
<step>
427
450
<para>
428
 
You will be prompted for your password in order to proceed. 
429
 
</para>
430
 
</step>
431
 
<step>
432
 
<para>
433
 
Next, click on the <guilabel>Other Software</guilabel> tab. Here, you can enable or disable 
434
 
existing repositories by checking off the appropriate boxes in the upper section. To add a new 
435
 
repository, click the <guilabel>Add</guilabel> button.
436
 
</para>
437
 
</step>
438
 
<step>
439
 
<para>
440
 
Enter your repository info here. Make sure you use the correct format. It will look 
441
 
similar to this: <screen>deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu karmic main</screen>
442
 
</para>
443
 
</step>
444
 
<step>
445
 
<para>
446
 
After adding the repository, you will be prompted to update your package list. This will allow KPackageKit to find the newly available software
447
 
</para>
448
 
</step>
449
 
<step>
450
 
<para>
451
 
To remove a repository, select the repository you want to remove in 
452
 
<guilabel>Software Sources</guilabel> then press the <guibutton>Remove</guibutton> 
453
 
button. Once complete go ahead and press the <guibutton>Close</guibutton> button.
 
451
An administrative password is required in order to proceed. 
 
452
</para>
 
453
</step>
 
454
 
 
455
<step>
 
456
<para>
 
457
Next, click on the <guilabel>Other Software</guilabel> tab. Existing
 
458
repositories can be enabled or disabled by checking the appropriate boxes
 
459
in the upper section. To add a new repository, click the
 
460
<guilabel>Add</guilabel> button.
 
461
</para>
 
462
</step>
 
463
 
 
464
<step>
 
465
<para>
 
466
Enter the repository address. The proper format is required, and looks similar
 
467
to this: 
 
468
<screen>deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu
 
469
karmic main</screen>
 
470
</para>
 
471
</step>
 
472
 
 
473
<step>
 
474
<para>
 
475
After adding the repository, a prompt will appear to update the package list.
 
476
This will allow KPackageKit to find the newly available software.
 
477
</para>
 
478
</step>
 
479
 
 
480
<step>
 
481
<para>
 
482
To remove a repository, select it in <guilabel>Software Sources</guilabel>, and
 
483
press the <guibutton>Remove</guibutton> button. When the process is
 
484
complete, press the <guibutton>Close</guibutton> button.
454
485
</para>
455
486
</step>
456
487
</procedure>
462
493
<title>Updating</title>
463
494
 
464
495
<para>
465
 
Sometimes the Kubuntu developers release feature and security updates for
466
 
applications and packages within the Kubuntu system.
467
 
</para>
468
 
<para>
469
 
When these updates are available, Kubuntu will inform by showing a little window
470
 
at the right-corner of the screen. To update your system, click the <guibutton>Review and Update</guibutton>
471
 
which will open up KPackageKit. Now just click <guibutton>Select All Updates</guibutton> and then <guibutton>Apply</guibutton>, Kubuntu will download and install those updates for you.
472
 
</para>
473
 
<para>
474
 
When <application>Software Management</application> has finished updating your system,
 
496
&kubuntu; developers release feature and security updates for applications and
 
497
packages within the &kubuntu; system.
 
498
</para>
 
499
 
 
500
<para>
 
501
When updates become available, &kubuntu; will display a message in the System
 
502
Tray. To update the system, click the <guibutton>Review and Update</guibutton>
 
503
button, which will open KPackageKit. Click <guibutton>Select All
 
504
Updates</guibutton> and then <guibutton>Apply</guibutton>. &kubuntu; will
 
505
download and install the updates.
 
506
</para>
 
507
 
 
508
<para>
 
509
When <application>Software Management</application> has finished updating,
475
510
close the window by clicking the <guibutton>Okay</guibutton> button.
476
511
</para>
477
512
<note>
478
 
<para>After installing some important updates, it may be necessary to
479
 
restart your computer. If so, Kubuntu will inform you with a pop up and an icon
480
 
in your system tray.
 
513
<para>After installing some updates, it may be necessary to restart the
 
514
computer. If so, &kubuntu; will display a pop-up and an icon in the System
 
515
Tray.
481
516
</para>
482
517
</note>
483
518
</sect1>