
Arcom Embedded Linux Technical Manual Package management
Package management
A default installation of AEL can contain several optional packages, such as the
OpenBSD Secure Shell (SSH), Web and FTP servers. If your application does not
require these and you want to free some space in the Flash, you may remove some
packages. Conversely, if you require a package that is not installed by default, you can
add packages to the board.
AEL uses the dpkg package management system to manage packages on the target
system. An application is typically packaged as a single .deb package file, which can be
installed as described in Adding packages
, below.
A library is normally split into two packages, the runtime package libFOO and the
development package libFOO-dev. The libFOO package must be installed on the target
system, while the libFOO-dev package must not. To compile and link applications
against a library, both the library package itself and the development package must also
be present in the host environment.
All of the library runtime and development packages that are included on the
Development Kit CD (even those that are not included in the default target installation)
are installed into the host environment by the installer. If you install a library package
from another source, such as one provided by Arcom technical support, you must install
the runtime and development packages into the host environment yourself. See
Installing additional packages into the host environment
, page 35.
You can view a list of packages installed on the target by running the following
command on the target:
$ dpkg –l
When you run this command, the following information is displayed:
…
ii libc6 2.3.1−5
…
ii bash 2.05b−3
…
Removing packages
Packages can be removed using dpkg. For example, enter the following to remove the
example package:
# dpkg –r example
Adding packages
Additional software components in .deb packages are on the Development Kit CD, in
the /packages folder. To add a package to the target system, follow these steps:
1 Transfer the required package to a temporary folder on the target, for example:
$ scp /mnt/cdrom/packages/ntp/ntpd_4.1.1-1_arm.deb \
root@target.example.net:/tmp
2 Install the package on the target by entering the following:
# dpkg –i /tmp/ntpd_4.1.1-1_arm.deb
© 2006 Arcom Issue G 29
Kommentare zu diesen Handbüchern