APT (en): Unterschied zwischen den Versionen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen
Zeile 5: Zeile 5:
 
[http://en.wikipedia.org/wiki/Advanced_Packaging_Tool APT] (short for '''A'''dvanced '''P'''ackaging '''T'''ool) is a [http://en.wikipedia.org/wiki/Package_management_system package management system] which finds it origin in the Debian GNU/Linux operating system, and is based on the dpkg package management.  
 
[http://en.wikipedia.org/wiki/Advanced_Packaging_Tool APT] (short for '''A'''dvanced '''P'''ackaging '''T'''ool) is a [http://en.wikipedia.org/wiki/Package_management_system package management system] which finds it origin in the Debian GNU/Linux operating system, and is based on the dpkg package management.  
  
APT was introduced in the Deambox world since [http://www.openembedded.org/wiki/Main_Page OE] 2.2.
+
APT was introduced in the Deambox world since [http://www.openembedded.org/wiki/Main_Page OE] 2.2. (For dreamboxes with OE 1.6 or OE 2.0, [[OPKG (en)|OPKG]] is used.)
  
 
The package management in the [[Shell (en)|shell]] is a powerful tool for the Dreambox, and offers far more possibilities compared to the package management with the remote control.  Of course, using the remote control is easy and most of the time adequate.  But maybe this article can convince you to give it a try via [[Telnet (en)|Telnet]] or [[SSH (en)|SSH]].
 
The package management in the [[Shell (en)|shell]] is a powerful tool for the Dreambox, and offers far more possibilities compared to the package management with the remote control.  Of course, using the remote control is easy and most of the time adequate.  But maybe this article can convince you to give it a try via [[Telnet (en)|Telnet]] or [[SSH (en)|SSH]].

Version vom 5. Oktober 2014, 18:44 Uhr

Deutsch.png - auf Deutsch English.png - in English

APT (short for Advanced Packaging Tool) is a package management system which finds it origin in the Debian GNU/Linux operating system, and is based on the dpkg package management.

APT was introduced in the Deambox world since OE 2.2. (For dreamboxes with OE 1.6 or OE 2.0, OPKG is used.)

The package management in the shell is a powerful tool for the Dreambox, and offers far more possibilities compared to the package management with the remote control. Of course, using the remote control is easy and most of the time adequate. But maybe this article can convince you to give it a try via Telnet or SSH.

This article explains how to search / install / remove packages and some more interesting commands which offers APT.


Feeds

The feed files are stored in the directory: /etc/apt/sources.list

Install packages from feed

Install

A package can be installed with following command:

apt-get install package_name

Deinstallation

A package can be removed with following command:

apt-get remove package_name

To remove a package with all unused dependencies, use the command:

apt-get autoremove package_name

Local saved packages

Install

To install deb package, which are available on a computer, it needs to be copied onto the box in the /tmp directory. The installation is done with following commands:

cd /tmp
dpkg --install *.deb 
bzw.
dpkg -i *.deb

Deinstallation

To remove a package which was installed with dpkg, use following commands:

dpkg --remove package_name
bzw.
dpkg -r package_name

Update / Upgrade

Update

To update the package list, use following command:

apt-get update

Upgrade

To update the installed software, use following command:

apt-get upgrade

or

apt-get dist-upgrade

Update and Upgrade together

All in one go:

apt-get update && apt-get upgrade

or

apt-get update && apt-get dist-upgrade

Other useful commands

The missing dependencies can be checked with the following command:

apt-get check

the cache (the downloaded install files) can be deletes with following command:

apt-get clean