timohei.net / Opintojaksot / Opintojaksot / Automaation IoT-projekti / Linux -komentoja /
Ohjelmien asentaminen
Paketinhallintaohjelmat
- sudo apt-get [install | remove | purge] paketti
- pi-packages (Menu -> Preferences... -> Add/Remove software)
- synaptic (asennuksen jälkeen Menu -> Preferences... -> Synaptic Package Manager)
apt-get
DESCRIPTION
apt-get is the command-line tool for handling packages, and may be
considered the user's "back-end" to other tools using the APT library.
Several "front-end" interfaces exist, such as aptitude(8), synaptic(8)
and wajig(1). [...]
update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when
using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated
packages is available. An update should always be performed before
an upgrade or dist-upgrade. Please be aware that the overall
progress meter will be incorrect as the size of the package files
cannot be known in advance.
upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
[...]
install
install is followed by one or more packages desired for
installation or upgrading. Each package is a package name, not a
fully qualified filename (for instance, in a Debian system,
apt-utils would be the argument provided, not
apt-utils_1.2.10_amd64.deb). All packages required by the
package(s) specified for installation will also be retrieved and
installed. [...]
remove
remove is identical to install except that packages are removed
instead of installed. Note that removing a package leaves its
configuration files on the system. [...]
purge
purge is identical to remove except that packages are removed and
purged (any configuration files are deleted too).
[...]
autoremove (and the auto-remove alias since 1.1)
autoremove is used to remove packages that were automatically
installed to satisfy dependencies for other packages and are now no
longer needed
[...]
Tämä on vain ote sivulla ubuntu manuals olevasta ohjeesta. Koko ohjeen saa Raspberryn pääteíkkunassa komennolla man apt-get.
Esimerkki
Synaptic-paketinhallintaohjelmiston asentaminen:
pi@raspberry:~ $ sudo apt-get install synaptic
Päivitetty 6.1.2025
© Timo Heikkinen | timo piste heikkinen at oamk piste fi