8.9. Administration of Packages

In order to install packages, you need to define where you want to get them from, where your package reservoir is.

You define your package reservoir in the file /etc/apt/sources.list

You can either work with package administration via the command line or with the help of a graphical application such as KPackage 5, or Webmin 10

A quick introduction to the use of the command line for working with package administration is given in this section.

This is the content of the file that contains the information about your package reservoir:


#deb file:///cdrom/ sarge main local

deb cdrom:[Debian GNU/Linux edu _Sarge_ - Unofficial i386 Binary-1 (20050808)]/ unstable contrib local main non-free

# deb http://security.debian.org/ stable/updates main contrib non-free
#deb http://security.debian.org/ sarge/updates main contrib non-free
### Use (by uncommenting) either http or ftp, NOT both
### http based apt source: ----------------
# deb http://ftp.debian.org/debian/ sarge main contrib non-free
# deb http://non-us.debian.org/debian-non-US/ sarge/non-US main contrib non-free
# deb http://ftp.skolelinux.no/skolelinux/ sarge local
### ftp based apt source: -----------------
# deb ftp://ftp.debian.org/debian/ sarge main contrib non-free
# deb ftp://non-us.debian.org/debian-non-US/ sarge/non-US main contrib non-free
# deb ftp://ftp.skolelinux.no/skolelinux/ sarge local

Notice that the only line without a #-sign in the front is the line that says to use the cdrom that you used during installation. No other reservoir are activated. The first thing you should do is to activate the line that enables security upgrades, then some more reservoirs so that you can install additional packages.

For a start you can make it look like this:


#deb file:///cdrom/ sarge main local

#deb cdrom:[Debian GNU/Linux edu _Sarge_ - Unofficial i386 Binary-1 (20050808)]/ unstable contrib local main non-free

#deb http://security.debian.org/ stable/updates main contrib non-free
deb http://security.debian.org/ sarge/updates main contrib non-free
### Use (by uncommenting) either http or ftp, NOT both
### http based apt source: ----------------
deb http://ftp.debian.org/debian/ sarge main contrib non-free
deb http://non-us.debian.org/debian-non-US/ sarge/non-US main contrib non-free
deb http://ftp.skolelinux.no/skolelinux/ sarge local
### ftp based apt source: -----------------
# deb ftp://ftp.debian.org/debian/ sarge main contrib non-free
# deb ftp://non-us.debian.org/debian-non-US/ sarge/non-US main contrib non-free
# deb ftp://ftp.skolelinux.no/skolelinux/ sarge local

Notice that I placed a #-sign in front of the line containing "deb: cdrom", no need to install from cdrom when you have it available from the Internet.

If you add new lines to this file, then you have to update the database that contains information about what is available.

See Chapter 13 for other lines that you can add as sources for packages.

8.9.1. Updating the Database with Info About Available Packages

The selection of available packages changes constantly. New packages become available; newer versions of packages appear, etc. So it is necessary to make sure that the database that contains information about the packages is kept constantly up-to-date. This is done with the command

apt-get update


tjener:~# apt-get update
Get:1 http://ftp.skolelinux.no sarge/local Packages [17.4kB]
Ign http://ftp.skolelinux.no sarge/local Release
Get:2 http://non-us.debian.org sarge/non-US/main Packages [20B]
Get:3 http://non-us.debian.org sarge/non-US/main Release [102B]
Get:4 http://non-us.debian.org sarge/non-US/contrib Packages [20B]
Get:5 http://non-us.debian.org sarge/non-US/contrib Release [105B]
Get:6 http://non-us.debian.org sarge/non-US/non-free Packages [20B]
Get:7 http://non-us.debian.org sarge/non-US/non-free Release [106B]
Get:8 http://ftp.debian.org sarge/main Packages [3347kB]
Get:9 http://security.debian.org sarge/updates/main Packages [155kB]
Get:10 http://security.debian.org sarge/updates/main Release [110B]
Get:11 http://security.debian.org sarge/updates/contrib Packages [538B]
Get:12 http://security.debian.org sarge/updates/contrib Release [113B]
Get:13 http://security.debian.org sarge/updates/non-free Packages [20B]
Get:14 http://security.debian.org sarge/updates/non-free Release [114B]
Get:15 http://ftp.debian.org sarge/main Release [95B]
Get:16 http://ftp.debian.org sarge/contrib Packages [56.2kB]
Get:17 http://ftp.debian.org sarge/contrib Release [98B]
Get:18 http://ftp.debian.org sarge/non-free Packages [58.4kB]
Get:19 http://ftp.debian.org sarge/non-free Release [99B]
Fetched 3635kB in 23s (157kB/s)
Reading Package Lists... Done

You should always run this command before you upgrade or add new packages.

8.9.2. Upgrading All Installed Packages to a Newer Version

All of the packages that have already been installed can be upgraded to a newer version with the command

apt-get upgrade


tjener:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  apache apache-common apache2-utils bsdutils cfengine cfengine-doc courier-authdaemon courier-base courier-imap courier-imap-ssl courier-ldap
  courier-ssl cpio debian-edu-config debian-edu-install education-common education-main-server education-networked education-tasks libapr0 libice6
  libmysqlclient12 libpam-ldap libpcre3 libsensors3 libsm6 libsnmp-base libsnmp5 libssl0.9.7 libungif4g libx11-6 libxext6 libxft1 libxi6 libxmu6 libxmuu1
  libxp6 libxpm4 libxrandr2 libxt6 libxtrap6 libxtst6 localization-config lynx mount mysql-common ntp ntp-refclock ntp-server ntpdate openssl python2.3
  slbackup snmp squid squid-common tcpdump util-linux xdebconfigurator xfree86-common xlibs xlibs-data
62 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.7MB of archives.
After unpacking 225kB disk space will be freed.
Do you want to continue? [Y/n] 

Just pressing Enter or pressing 'Y' and then Enter will download all these packages, and automatically install them for you. Maybe there will be a changelog displayed before the upgrade will start.

Warning

Sometimes it's really nice to know what is actually going to happen before you start to upgrade all installed packages. It's possible that it's not the right moment for you to start downloading several large packages. Maybe you need to wait until there is more bandwidth available. If you run

apt-get upgrade --simulate

then nothing will actually happen- the upgrade will only be simulated. If there is too much information on the screen, then you can try

apt-get upgrade --simulate | more

If it looks fine, then you run the above command again, taking away the --simulate

It's also a good thing to consider using aptitude dist-upgrade in combination with apt-get upgrade, or instead of.

Once you are done with the upgrade, you should delete the packages that have been downloaded and placed in /var/cache/apt/archives/, you delete these with the command

apt-get clean

If you don't do this regularly the partition /var will fill up.

8.9.3. Overview of Installed Packages

You can get an overview of installed packages using the command

dpkg --list | more

Be aware that the first two letters indicate the status of the package; "ii" means that it is fully installed.

If you are looking for a specific package, to find out if it is installed, or what version you have installed, use grep to search for it:


tjener:~# dpkg --list | grep apache
ii  apache         1.3.33-6       versatile, high-performance HTTP server
ii  apache-common  1.3.33-6       support files for all Apache webservers
ii  apache2-utils  2.0.54-4       utility programs for webservers

8.9.4. Finding the Name of a Specific Package

If you don't remember the name of a package, you can do a search of the database with the command

apt-cache search <packagename>

If there is too much text on the screen, then you can try

apt-cache search <packagename>|more

The two symbols < and > must not be used. They are only used in this example.


tjener:~# apt-cache search apache
apache - versatile, high-performance HTTP server
apache-common - support files for all Apache webservers
apache-dbg - debug versions of the Apache webservers
apache-dev - development kit for the Apache webserver
apache-doc - documentation for the Apache webserver
apache-perl - versatile, high-performance HTTP server with Perl support
apache-ssl - versatile, high-performance HTTP server with SSL support
apache-utils - utility programs for webservers (transitional package)

So you see there is much more related to apache than those few packages already installed on the system.

8.9.5. Showing Available Information about a Package

The commands

apt-cache showpkg <packagename>

and

apt-cache policy <packagename>

will give you detailed info about the package.


tjener:~# apt-cache showpkg kdissert
Package: kdissert
Versions:
0.3.8-1(/var/lib/apt/lists/ftp.debian.org_debian_dists_sarge_main_binary-i386_Packages)

Reverse Depends:
Dependencies:
0.3.8-1 - kdelibs4 (2 4:3.3.2-4.0.2) libc6 (2 2.3.2.ds1-4) libgcc1 (2 1:3.4.1-3) libqt3c102-mt (2 3:3.3.3) libstdc++5 (2 1:3.3.4-1)
Provides:
0.3.8-1 -
Reverse Provides:
tjener:~# apt-cache policy  kdissert
kdissert:
  Installed: (none)
  Candidate: 0.3.8-1
  Version Table:
     0.3.8-1 0
        500 http://ftp.debian.org sarge/main Packages

So you see the package kdissert is not installed, but is available for installation in version 0.3.8-1 from http://ftp.debian.org sarge/main

8.9.6. Installing a Package

When you have found the package you want, install it with the command

apt-get install <packagename>

If you want to see what will happen when you install it, you can first run a simulation with the command

apt-get install <packagename> --simulate


tjener:~# apt-get install  aterm --simulate
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  aterm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst aterm (0.4.2-11 Debian:3.1r0/stable)
Conf aterm (0.4.2-11 Debian:3.1r0/stable)
tjener:~# apt-get install  aterm
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  aterm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 91.6kB of archives.
After unpacking 287kB of additional disk space will be used.
Get:1 http://ftp.debian.org sarge/main aterm 0.4.2-11 [91.6kB]
Fetched 91.6kB in 1s (71.0kB/s)
Selecting previously deselected package aterm.
(Reading database ... 32924 files and directories currently installed.)
Unpacking aterm (from .../aterm_0.4.2-11_i386.deb) ...
Setting up aterm (0.4.2-11) ...

8.9.7. Removing an Installed Package

To find the specific package that you want to remove, use the commands that were mentioned earlier for finding the name of the package.

When you know the name of the package, then you can remove it simply with the command

apt-get remove <packagename>

If you want to see what is going to happen when you remove the package, you can run a simulation first with the command

apt-get remove <packagename> --simulate


tjener:~# apt-get remove  aterm --simulate
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  aterm
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Remv aterm (0.4.2-11 Debian:3.1r0/stable)
tjener:~# apt-get remove  aterm
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  aterm
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 287kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 32936 files and directories currently installed.)
Removing aterm ...

8.9.8. Installing one Specific Version of a Package

When you install a package with the command

apt-get install <packagename>

the newest version will be automatically installed. Sometimes you don't want to install the newest version, just a little older version.

apt-get install <packagename>=older_versions_number

If you think that the older version of the backup module of Webmin is better, then you should run

apt-cache showpkg webmin-slbackup

to get an overview of available versions

tjener:~#  apt-cache policy webmin-slbackup
webmin-slbackup:
  Installed: 0.0.10-1
  Candidate: 0.0.10-1
  Version Table:
 *** 0.0.10-1 0
        500 http://ftp.skolelinux.no sarge/local Packages
        100 /var/lib/dpkg/status
     0.0.9-1 0
        500 http://ftp.debian.org sarge/main Packages

Here you can see that there are two versions available: 0.0.9-1 and 0.0.10-1

If you want to install version 0.0.9-1, you can do that with the command

apt-get install webmin-slbackup=0.0.9-1


tjener:~# apt-get install webmin-slbackup=0.0.9-1 --simulate
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be DOWNGRADED:
  webmin-slbackup
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Inst webmin-slbackup [0.0.10-1] (0.0.9-1 Debian:3.1r0/stable)
Conf webmin-slbackup (0.0.9-1 Debian:3.1r0/stable)
tjener:~# apt-get install webmin-slbackup=0.0.9-1
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be DOWNGRADED:
  webmin-slbackup
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 22.0kB of archives.
After unpacking 131kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org sarge/main webmin-slbackup 0.0.9-1 [22.0kB]
Fetched 22.0kB in 0s (23.6kB/s)
dpkg - warning: downgrading webmin-slbackup from 0.0.10-1 to 0.0.9-1.
(Reading database ... 32924 files and directories currently installed.)
Preparing to replace webmin-slbackup 0.0.10-1 (using .../webmin-slbackup_0.0.9-1_all.deb) ...
Unpacking replacement webmin-slbackup ...
Setting up webmin-slbackup (0.0.9-1) ...

8.9.9. Installing a Package with the Help of dpkg

Sometimes you want to manually download a package from somewhere, such as from Opera's web page. Then you get a so-called .deb-package in your own home directory. You can install it by using the command

dpkg --install <>

If you first want to do a simulation, run the command

dpkg --no-act -install <packagename>


tjener:~# dpkg --install --no-act opera_8.51-20051114.5-shared-qt_en_sarge_i386.deb
Selecting previously deselected package opera.
(Reading database ... 32924 files and directories currently installed.)
Unpacking opera (from opera_8.51-20051114.5-shared-qt_en_sarge_i386.deb) ...
tjener:~# dpkg --install  opera_8.51-20051114.5-shared-qt_en_sarge_i386.deb
Selecting previously deselected package opera.
(Reading database ... 32924 files and directories currently installed.)
Unpacking opera (from opera_8.51-20051114.5-shared-qt_en_sarge_i386.deb) ...
dpkg: dependency problems prevent configuration of opera:
 opera depends on libqt3c102-mt; however:
  Package libqt3c102-mt is not installed.
dpkg: error processing opera (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 opera

As you can see, dpkg is not as powerful as apt-get, because it doesn't manage to install all extra packages that is needed. If we now immediately run apt-get with some extra options apt-get --fix-broken things will improve


tjener:~# apt-get install --fix-broken --simulate
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libaudio2 liblcms1 libmng1 libqt3c102-mt libxcursor1 libxft2
Suggested packages:
  nas liblcms-utils libqt3c102-mt-psql libqt3c102-mt-mysql libqt3c102-mt-odbc
The following NEW packages will be installed:
  libaudio2 liblcms1 libmng1 libqt3c102-mt libxcursor1 libxft2
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Inst libaudio2 (1.7-2 Debian:3.1r0/stable) [opera ]
Inst liblcms1 (1.13-1 Debian:3.1r0/stable) [opera ]
Inst libmng1 (1.0.8-1 Debian:3.1r0/stable) [opera ]
Inst libxcursor1 (1.1.3-1 Debian:3.1r0/stable) [opera ]
Inst libxft2 (2.1.7-1 Debian:3.1r0/stable) [opera ]
Inst libqt3c102-mt (3:3.3.4-3 Debian:3.1r0/stable)
Conf libaudio2 (1.7-2 Debian:3.1r0/stable)
Conf liblcms1 (1.13-1 Debian:3.1r0/stable)
Conf libmng1 (1.0.8-1 Debian:3.1r0/stable)
Conf libxcursor1 (1.1.3-1 Debian:3.1r0/stable)
Conf libxft2 (2.1.7-1 Debian:3.1r0/stable)
Conf libqt3c102-mt (3:3.3.4-3 Debian:3.1r0/stable)
Conf opera (8.51-20051114.5 )
tjener:~# apt-get install --fix-broken
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libaudio2 liblcms1 libmng1 libqt3c102-mt libxcursor1 libxft2
Suggested packages:
  nas liblcms-utils libqt3c102-mt-psql libqt3c102-mt-mysql libqt3c102-mt-odbc
The following NEW packages will be installed:
  libaudio2 liblcms1 libmng1 libqt3c102-mt libxcursor1 libxft2
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3489kB of archives.
After unpacking 8753kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org sarge/main libaudio2 1.7-2 [71.5kB]
Get:2 http://ftp.debian.org sarge/main liblcms1 1.13-1 [123kB]
Get:3 http://ftp.debian.org sarge/main libmng1 1.0.8-1 [171kB]
Get:4 http://ftp.debian.org sarge/main libxcursor1 1.1.3-1 [23.7kB]
Get:5 http://ftp.debian.org sarge/main libxft2 2.1.7-1 [54.4kB]
Get:6 http://ftp.debian.org sarge/main libqt3c102-mt 3:3.3.4-3 [3045kB]
Fetched 3489kB in 16s (212kB/s)
Selecting previously deselected package libaudio2.
(Reading database ... 33027 files and directories currently installed.)
Unpacking libaudio2 (from .../libaudio2_1.7-2_i386.deb) ...
Selecting previously deselected package liblcms1.
Unpacking liblcms1 (from .../liblcms1_1.13-1_i386.deb) ...
Selecting previously deselected package libmng1.
Unpacking libmng1 (from .../libmng1_1.0.8-1_i386.deb) ...
Selecting previously deselected package libxcursor1.
Unpacking libxcursor1 (from .../libxcursor1_1.1.3-1_i386.deb) ...
Selecting previously deselected package libxft2.
Unpacking libxft2 (from .../libxft2_2.1.7-1_i386.deb) ...
Selecting previously deselected package libqt3c102-mt.
Unpacking libqt3c102-mt (from .../libqt3c102-mt_3%3a3.3.4-3_i386.deb) ...
Setting up libaudio2 (1.7-2) ...

Setting up liblcms1 (1.13-1) ...

Setting up libmng1 (1.0.8-1) ...

Setting up libxcursor1 (1.1.3-1) ...

Setting up libxft2 (2.1.7-1) ...

Setting up libqt3c102-mt (3.3.4-3) ...

Setting up opera (8.51-20051114.5) ...

Armed with the different commands from earlier in this chapter, we can now verify that Opera really is installed


tjener:~# apt-cache policy opera
opera:
  Installed: 8.51-20051114.5
  Candidate: 8.51-20051114.5
  Version Table:
 *** 8.51-20051114.5 0
        100 /var/lib/dpkg/status
tjener:~# dpkg --list|grep opera
ii  opera          8.51-20051114. The Opera Web Browser

8.9.10. Searching Through Files that were Installed by a Specific Package

Sometimes it's nice to know exactly which files came from a specific package. You can get that overview with the command

dpkg --listfiles <packagename>


tjener:~# dpkg --listfiles opera  
/usr/bin
/usr/bin/opera
.
.
.
/etc
/etc/opera6rc
/etc/opera6rc.fixed

8.9.11. Finding Which Package a File Came From

If you want to know which package a specific package came from, the command

dpkg --search <filename>

will help you find out.


tjener:~#  dpkg --search /etc/opera6rc.fixed
opera: /etc/opera6rc.fixed

8.9.12. Making Your Own Local Mirror for Deb-Packages

There are some packages which I often install, as well as some packages that I wish I didn't have to download from the Internet every time. Even if the command apt-get makes it easier to install packages from the Internet, unfortunately apt-get won't increase the speed of my Internet connection. However, I can use apt-get to make my own mirror of the packages that I have downloaded. That way, in the future when I want to install these packages, the command apt-get will fetch the packages that I have already downloaded. This goes more quickly.

mkdir /var/www/dpkg
cp /var/cache/apt/archives/*.deb /var/www/dpkg
cd /var/www/
dpkg-scanpackages dpkg /dev/null | gzip -9c > dpkg/Packages.gz

After that, a new line in the file /etc/apt/sources.list must be added to

deb file:///var/www dpkg/
Then you must, as usual, run the command apt-get update in order to update your package database.

8.9.13. Upgrade of OpenOffice.org from 1.1.3 to 2.0

Skolelinux/Debian-eduis based on the version of Debian with the codename "Stable", that means the software that is included is thoroughly tested, and therefor deemed "Stable", this is all well and nice because that means your server will not crash, but it might mean that your users will crash your workday be demanding newer and uptodate software, then you must upgrade ..

Luckily you are not the only one with such demands coming from your users, and for this reason there has been put in place a framework where it is possible to install newer software on Debian Stable, which wasn't meant for it. Welcome "backports",http://www.backports.org/. Backports is a software repository holding such things as OpenOffice.org 2.0.

Tip

Before you install OpenOffice.org 2.0, it's vice to remove OpenOffice.org 1.1.3, like this:

apt-get remove openoffice.org openoffice.org-bin openoffice.org-debian-files

That will most likely remove most of the installed OpenOffice.org packages, to be sure use

COLUMNS=160 dpkg -l | grep openoffice

to see which is left, then remove those as well.

If you want to install anything from backports, the quickest way is to add this extra line to the file /etc/apt/sources.list

deb http://www.backports.org/debian/ sarge-backports main
Then do the usual

apt-get update

Then install OpenOffice.org 2.0 and some extra packages with the command

apt-get install openoffice.org openoffice.org-kde openoffice.org-l10n-nb openoffice.org-l10n-nn openoffice.org-l10n-de openoffice.org-l10n-fr --simulate

this will install just about all you need (and possibly some more)

Warning

Especially when it comes to installing software from "unofficial" repositories, like Backports, I strongly suggest running apt-get install with the --simulate switch the first time, just to see what actually will happen, before it happens, and when you are comfortable with what you see when using --simulate, or when you decide that you will try anyway, then just remove --simulate

Running with --simulate should yield something like this:

tjener:~# apt-get install openoffice.org openoffice.org-kde openoffice.org-l10n-nb openoffice.org-l10n-nn 
openoffice.org-l10n-de openoffice.org-l10n-fr --simulate                                                                                                                                        
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libgnujaxp-java libgnujaxp-jni libneon24 libnspr4 libnss3 libsndfile1 libwpd8 libxt-java openoffice.org-base openoffice.org-calc openoffice.org-common
  openoffice.org-core openoffice.org-draw openoffice.org-impress openoffice.org-java-common openoffice.org-l10n-ca openoffice.org-l10n-el
  openoffice.org-l10n-en-us openoffice.org-l10n-es openoffice.org-l10n-nl openoffice.org-math openoffice.org-writer python-uno
Suggested packages:
  libservlet2.2-java libservlet2.3-java openoffice.org-help ooqstart-gnome oooqs-kde unixodbc ttf-dejavu prelink openoffice.org-hyphenation
  openoffice.org2-thesaurus msttcorefonts openoffice.org-gnome mozilla-browser openoffice.org-officebean java-gcj-compat j2re1.4 java2-runtime
  openoffice.org-filter-so52 openclipart-openoffice.org openoffice.org-thesaurus openoffice.org-mimelnk openoffice.org-gtk-gnome openclipart libmyodbc
  odbc-postgresql tdsodbc mdbtools libmysql-java libpg-java libsapdbc-java kaddressbook openoffice.org-hyphenation-ca openoffice.org2-thesaurus-ca
  openoffice.org-help-ca-2.0.1 openoffice.org-thesaurus-ca openoffice.org-help-ca openoffice.org-hyphenation-de openoffice.org2-thesaurus-de
  openoffice.org-help-de-2.0.1 openoffice.org-thesaurus-de openoffice.org-help-de openoffice.org-hyphenation-el openoffice.org2-thesaurus-el
  openoffice.org-help-el-2.0.1 openoffice.org-thesaurus-el myspell-dictionary-en-us openoffice.org-hyphenation-en-us openoffice.org2-thesaurus-en-us
  openoffice.org-help-en-us-2.0.1 openoffice.org-hyphenation-es openoffice.org2-thesaurus-es openoffice.org-help-es-2.0.1 openoffice.org-thesaurus-es
  openoffice.org-hyphenation-fr openoffice.org2-thesaurus-fr openoffice.org-help-fr-2.0.1 openoffice.org-thesaurus-fr openoffice.org-hyphenation-nb
  openoffice.org2-thesaurus-nb openoffice.org-help-nb-2.0.1 openoffice.org-thesaurus-nb openoffice.org-help-nb myspell-dictionary-nl
  openoffice.org-hyphenation-nl openoffice.org2-thesaurus-nl openoffice.org-help-nl-2.0.1 openoffice.org-thesaurus-nl openoffice.org-help-nl
  openoffice.org-hyphenation-nn openoffice.org2-thesaurus-nn openoffice.org-help-nn-2.0.1 openoffice.org-thesaurus-nn openoffice.org-help-nn
The following packages will be REMOVED:
  openoffice.org-help-el openoffice.org-help-en openoffice.org-help-es openoffice.org-help-fr openoffice.org-l10n-en
The following NEW packages will be installed:
  libgnujaxp-java libgnujaxp-jni libneon24 libnspr4 libnss3 libsndfile1 libwpd8 libxt-java openoffice.org openoffice.org-base openoffice.org-calc
  openoffice.org-common openoffice.org-core openoffice.org-draw openoffice.org-impress openoffice.org-java-common openoffice.org-kde
  openoffice.org-l10n-en-us openoffice.org-math openoffice.org-writer python-uno
The following packages will be upgraded:
  openoffice.org-l10n-ca openoffice.org-l10n-de openoffice.org-l10n-el openoffice.org-l10n-es openoffice.org-l10n-fr openoffice.org-l10n-nb
  openoffice.org-l10n-nl openoffice.org-l10n-nn
8 upgraded, 21 newly installed, 5 to remove and 258 not upgraded.                                                                                     

Warning

Pay closely attention to what will be Removed.

If what you see looks like what I see, then you can remove --simulate and install OpenOffice.org.

Warning

Once you are done with installing OpenOffice.org 2.0 you should/must remove the line in /etc/apt/sources.list that referees to backports, if you forget that, and run apt-get upgrade with those lines included, the consequence can be dire ...

8.9.14. Upgrade OpenClipart

Note

If you follow these instructions and download to /tmp, then make sure you have enough space in /tmp. You need approximately 185MB space, check with df -h /tmp

One very good companion to OpenOffice.org is OpenClipart, I recommend using the one from Debian Testing, you must manually download them and install them with

dpkg --install

, see the chapter dpkg. You find the info about the latest version of OpenClipart at the page http://packages.debian.org/testing/graphics/openclipart, you actually need to download 4 packages:

OpenClipart packages

  1. openclipart

  2. openclipart-openoffice.org

  3. openclipart-png

  4. openclipart-svg

You can either download them on by one with you webbrowser, or use the helpful program wget from the commandline:

inouti@tjener:~$ mkdir /tmp/openclipartDeb
inouti@tjener:~$ cd /tmp/openclipartDeb
inouti@tjener:/tmp/openclipartDeb$ wget ftp://ftp.debian.de/debian/pool/main/o/openclipart/openclipart-openoffice.org_0.18+dfsg-4_all.deb
inouti@tjener:/tmp/openclipartDeb$ wget ftp://ftp.debian.de/debian/pool/main/o/openclipart/openclipart-png_0.18+dfsg-4_all.deb
inouti@tjener:/tmp/openclipartDeb$ wget ftp://ftp.debian.de/debian/pool/main/o/openclipart/openclipart-svg_0.18+dfsg-4_all.deb
inouti@tjener:/tmp/openclipartDeb$ wget ftp://ftp.debian.de/debian/pool/main/o/openclipart/openclipart_0.18+dfsg-4_all.deb

Note

The version number, 0.18+dfsg-4, above for OpenClipart will likely change as time goes by, visit the Debian webpage for OpenClipart to find the new versionnumber.

Once you are down with the downloading, install the packages as root:

inouti@tjener:~$ su
Password:
tjener:/skole/tjener/home0/inouti# cd /tmp/openclipartDeb/
tjener:/tmp/openclipartDeb# dpkg --install openclipart*.deb
Selecting previously deselected package openclipart-openoffice.org.
(Reading database ... 83982 files and directories currently installed.)
Unpacking openclipart-openoffice.org (from openclipart-openoffice.org_0.18+dfsg-4_all.deb) ...
Selecting previously deselected package openclipart-png.
Unpacking openclipart-png (from openclipart-png_0.18+dfsg-4_all.deb) ...
Selecting previously deselected package openclipart-svg.
Unpacking openclipart-svg (from openclipart-svg_0.18+dfsg-4_all.deb) ...
Selecting previously deselected package openclipart.
Unpacking openclipart (from openclipart_0.18+dfsg-4_all.deb) ...
Setting up openclipart-png (0.18+dfsg-4) ...
Setting up openclipart-svg (0.18+dfsg-4) ...
Setting up openclipart-openoffice.org (0.18+dfsg-4) ...
Setting up openclipart (0.18+dfsg-4) ...
tjener:/tmp/openclipartDeb# exit
exit
inouti@tjener:/tmp/openclipartDeb$
Now you may delete these files, or let the system delete them next time you reboot.

inouti@tjener:/tmp/openclipartDeb$ rm openclipart*deb