Jessie installing software: Difference between revisions

From embeddedTS Manuals
No edit summary
(Formatting cleanup)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Debian provides the apt-get system which lets you manage pre-built applications. Before you do this you need to update Debian's list of package versions and locations.  This assumes you have a valid network connection to the internet.
Debian provides the apt-get system which allows management of pre-built applications. The apt tools require a network connection to the internet in order to automatically download and install new software. The update command will download a list of the current versions of pre-built packages.


Older Debian releases are moved to a different server to indicate it is no longer getting security updates. To download packages for these older distributions, edit <source inline>/etc/apt/sources.list</source> to only have the following lines:
Jessie:
<pre>
deb http://archive.debian.org/debian/ jessie main
deb-src http://archive.debian.org/debian/ jessie main
</pre>
Wheezy:
<pre>
deb http://archive.debian.org/debian/ wheezy main
deb-src http://archive.debian.org/debian/ wheezy main
</pre>
After modifying that file, be sure to update the package list:
<source lang=bash>
<source lang=bash>
apt-get update
apt-get update
</source>
</source>


For example, lets say you wanted to install openjdk for Java support.  You can use the apt-cache command to search the local cache of Debian's packages.
A common example is installing Java runtime support for a systemFind the package name first with search, and then install it.
 
<pre>
<pre>
root@ts:~# apt-cache search openjdk
root@ts:~# apt-cache search openjdk
Line 32: Line 48:
</pre>
</pre>


In this case you will likely want openjdk-7-jre to provide a runtime environment, and possibly openjdk-7-jdk to provide a development environmentYou can often find the names of packages from [http://wiki.debian.org/ Debian's wiki] or from just searching on google as well.
In this case you will want the openjdk-7-jre packageNames of packages are on [http://wiki.debian.org/ Debian's wiki] or the [https://packages.debian.org/jessie/ packages site].


Once you have the package name you can use apt-get to install the package and any dependencies.  This assumes you have a network connection to the internet.
With the package name apt-get install can be used to install the prebuilt packages.
<source lang=bash>
<source lang=bash>
apt-get install openjdk-7-jre
apt-get install openjdk-7-jre
# You can also chain packages to be installed
# More than one package can be installed at a time.
apt-get install openjdk-7-jre nano vim mplayer
apt-get install openjdk-7-jre nano vim mplayer
</source>
</source>


For more information on using apt-get refer to Debian's documentation [http://wiki.debian.org/AptCLI here].
For more information on using apt-get refer to Debian's documentation [http://wiki.debian.org/AptCLI here].

Latest revision as of 12:04, 6 April 2023

Debian provides the apt-get system which allows management of pre-built applications. The apt tools require a network connection to the internet in order to automatically download and install new software. The update command will download a list of the current versions of pre-built packages.

Older Debian releases are moved to a different server to indicate it is no longer getting security updates. To download packages for these older distributions, edit /etc/apt/sources.list to only have the following lines:

Jessie:

deb http://archive.debian.org/debian/ jessie main
deb-src http://archive.debian.org/debian/ jessie main

Wheezy:

deb http://archive.debian.org/debian/ wheezy main
deb-src http://archive.debian.org/debian/ wheezy main

After modifying that file, be sure to update the package list:

apt-get update

A common example is installing Java runtime support for a system. Find the package name first with search, and then install it.

root@ts:~# apt-cache search openjdk
jvm-7-avian-jre - lightweight virtual machine using the OpenJDK class library
freemind - Java Program for creating and viewing Mindmaps
icedtea-7-plugin - web browser plugin based on OpenJDK and IcedTea to execute Java applets
default-jdk - Standard Java or Java compatible Development Kit
default-jdk-doc - Standard Java or Java compatible Development Kit (documentation)
default-jre - Standard Java or Java compatible Runtime
default-jre-headless - Standard Java or Java compatible Runtime (headless)
jtreg - Regression Test Harness for the OpenJDK platform
libreoffice - office productivity suite (metapackage)
icedtea-7-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
openjdk-7-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-7-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-7-doc - OpenJDK Development Kit (JDK) documentation
openjdk-7-jdk - OpenJDK Development Kit (JDK)
openjdk-7-jre - OpenJDK Java runtime, using Hotspot Zero
openjdk-7-jre-headless - OpenJDK Java runtime, using Hotspot Zero (headless)
openjdk-7-jre-lib - OpenJDK Java runtime (architecture independent libraries)
openjdk-7-source - OpenJDK Development Kit (JDK) source files
uwsgi-app-integration-plugins - plugins for integration of uWSGI and application
uwsgi-plugin-jvm-openjdk-7 - Java plugin for uWSGI (OpenJDK 7)
uwsgi-plugin-jwsgi-openjdk-7 - JWSGI plugin for uWSGI (OpenJDK 7)
                                                       

In this case you will want the openjdk-7-jre package. Names of packages are on Debian's wiki or the packages site.

With the package name apt-get install can be used to install the prebuilt packages.

apt-get install openjdk-7-jre
# More than one package can be installed at a time.
apt-get install openjdk-7-jre nano vim mplayer

For more information on using apt-get refer to Debian's documentation here.