Friday, March 26, 2010

Configuring the Software Environment - Debian (Ubuntu) Systems

Configuring the Software Environment - Debian (Ubuntu) Systems
Debian systems use the dpkg system to manage the software installed on the host. Wrapped around dpkg is another suite of tools called the Advanced Packing Tool (APT) that you can use to download packages from a central repository. These tools make it easy to install the packages you need for embedded development.

You can install packages with one command and test to see (using the -s switch) what happens by doing the following:

$ sudo apt-get -s install automake autoconf m4 gcc gdb dhcp3-server nfs-userserver
􀀁
tftpd minicom

This produces output like the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version.
m4 is already the newest version.
gcc is already the newest version.
gdb is already the newest version.
The following extra packages will be installed:
autotools-dev openbsd-inetd portmap
Recommended packages:
lrzsz
The following NEW packages will be installed:
automake autotools-dev dhcp3-server minicom nfs-user-server openbsd-inetd
portmap􀀁
tftpd
0 upgraded, 8 newly installed, 0 to remove and 233 not upgraded.
Inst autotools-dev (20070725.1 Ubuntu:8.04/hardy)
Inst automake (1:1.10.1-2 Ubuntu:8.04/hardy)
Inst dhcp3-server (3.0.6.dfsg-1ubuntu9 Ubuntu:8.04/hardy)
Inst minicom (2.3~rc1-2 Ubuntu:8.04/hardy)
Inst portmap (6.0-4 Ubuntu:8.04/hardy)
Inst openbsd-inetd (0.20050402-6 Ubuntu:8.04/hardy)
Inst tftpd (0.17-15ubuntu1 Ubuntu:8.04/hardy)
Inst nfs-user-server (2.2beta47-23 Ubuntu:8.04/hardy)
Conf autotools-dev (20070725.1 Ubuntu:8.04/hardy)
Conf automake (1:1.10.1-2 Ubuntu:8.04/hardy)
Conf dhcp3-server (3.0.6.dfsg-1ubuntu9 Ubuntu:8.04/hardy)
Conf minicom (2.3~rc1-2 Ubuntu:8.04/hardy)
Conf portmap (6.0-4 Ubuntu:8.04/hardy)
Conf openbsd-inetd (0.20050402-6 Ubuntu:8.04/hardy)
Conf tftpd (0.17-15ubuntu1 Ubuntu:8.04/hardy)
Conf nfs-user-server (2.2beta47-23 Ubuntu:8.04/hardy)

Some of these packages may already be installed on your system, and others may be out of date. In
some cases, the requested packages require other packages in order to work correctly. No worries—aptget
sorts all that out, figuring out what packages must be installed in what order. After installing the
packages, the system also runs any configuration scripts so the newly installed software is ready to run.

Running the command without –s produces output like the following:

$ sudo apt-get install automake autoconf m4 gcc gdb dhcp3-server nfs-user-server􀀁
tftpd minicom

autoconf is already the newest version.
m4 is already the newest version.
gcc is already the newest version.
gdb is already the newest version.
The following extra packages will be installed:
autotools-dev openbsd-inetd portmap
Recommended packages:
lrzsz
The following NEW packages will be installed:
automake autotools-dev dhcp3-server minicom nfs-user-server openbsd-inetd portmap
􀀁
tftpd
0 upgraded, 8 newly installed, 0 to remove and 233 not upgraded.
Need to get 1261kB of archives.
After this operation, 4432kB of additional disk space will be used.
Do you want to continue [Y/n]?

Respond with Y, and press Enter. The packages are downloaded and installed on the system.


Source of Information : Pro Linux Embedded Systems

No comments: