Understanding apt-get command in Linux Ubuntu with examples. We all use apt-get install options and apt-get update command in Ubuntu Linux, but there are some other useful options of apt command.

Git packages are available via apt: From your shell, install Git using apt-get: $ sudo apt-get update $ sudo apt-get install git; Verify the installation was successful by typing git -version: $ git -version git version 2.9.2; Configure your Git username and email using the. Used to re-synchronize the package index files from their sources.

This post explains the most popular variants of apt command. Read below:

Output arcade vst mac torrent. Here are the 15 best ones. Freeze Chamber by Synthescience.

apt Command

Apt

The apt command is a powerful command-line tool, which works with Ubuntu’s Advanced Packaging Tool (APT) performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system.

Being a simple command-line tool, apt has numerous advantages over other package management tools available in Ubuntu for server administrators. Some of these advantages include ease of use over simple terminal connections (SSH), and the ability to be used in system administration scripts, which can in turn be automated by the cron scheduling utility.

NOTE:

  1. Actions of the apt command, such as installation and removal of packages, are logged in the /var/log/dpkg.log log file.
  2. For further information about the use of APT, read the comprehensive Debian APT User Manual or type the command “apt help” in terminal.

apt Command Examples In Ubuntu Linux

Here are some examples and popular uses of apt command:

apt-get install options

Before we begin, we must understand the apt-get package.

apt-get – APT package handling utility

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 synaptic and aptitude.

apt-get [options] [-o config=string] [-c=cfgfile] command [pkg]

APT (for Advanced Package Tool) is a set of tools for managing Debian packages, and therefore the applications installed on your Debian system. APT makes it possible to install applications, remove applications and update or upgrade applications up to the latest versions.

APT resolves dependency problems and retrieves requested packages from designated package repositories. APT delegates the actual installation and removal of packages to dpkg.

update

apt-get update

Used to re-synchronize the package index files from their sources. Sony vegas video for mac. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list. An update should always be performed before an upgrade or dist-upgrade.

upgrade

apt-get upgrade

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, nor are packages that are not already installed retrieved and installed.

dist-upgrade

apt-get dist-upgrade

In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages; apt-get has a “smart” conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones, if necessary.

clean

apt-get clean

Clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless.

autoclean

apt-get autoclean

This command removes .deb files for packages that are no longer installed on your system. Depending on your installation habits, removing these files from /var/cache/apt/archives may regain a significant amount of diskspace.

install

apt-get install

This option is followed by one or more packages desired for installation. Each package is a package name. All packages required by the package(s) specified for installation will also be retrieved and installed. The /etc/apt/sources.list file is used to locate the repositories for the desired packages. A specific version of a package can be selected for installation by following the package name with an equals (=) and the version of the package to select. This will cause that version to be located and selected for install.

-f install

apt-get -f install

This command does the same thing as Edit->Fix Broken Packages in Synaptic. Do this if you get complaints about packages with “unmet dependencies”.

remove

apt-get remove

Apt Get Commands

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. If a plus sign is appended to the package name (with no intervening space), the identified package will be installed instead of removed.

purge

apt-get purge

The purge is identical to remove except that packages are removed and purged (any configuration files are deleted too). Please note that the command apt-get remove just removes a package and not the configuration files. Whereas the command apt-get purge removes the package and its configuration files.

check

apt-get check

This command is a diagnostic tool. It does an update of the package lists and checks for broken dependencies.

Apt Get Command For Mac Os

  • Related Questions & Answers
  • Selected Reading
LinuxSoftware & CodingHardware

Apt-get is the command-line utility for dealing with applications and may be considered for the person’s “back-end” to other tools for making use of the APT library.Apt-cache performs a variety of operations on APT’s package.This article explains about -“Basic Commands of APT-GET and APT-CACHE for Package Management”.

Apt-get

To get the more options about apt-get, use the following command as shown below –

The sample output contains the following options as shown below –

Installing package

To install the package with apt-get, use the following command as shown below –

Ugrade the software packages

To upgrade the software packages, use the following command –

Remove unused packages

To remove automatically all unused packages, use the following command –

Erase downloaded archive files

To erase downloaded archive files, use the following command –

Erase old downloaded archives

To erase old downloaded archive files, use the following command –

Verify broken Dependencies

To verify that there are no broken dependencies, use the following command –

Apt-cache

To get the more options about apt-cache, use the following commands –

The sample options of apt-cache as shown below –

Get the dependencies of package

To get the dependencies of package or source records, use the following command –

Package list of a regex pattern

To get the package list for a regex pattern, use the following command –

Raw dependency information

To show raw dependency information for a package, use the following command – Plants мы zombies 2 download for mac.

Show reverse dependency information

To show reverse dependency information for a package, use the following command –

Show a readable record

To show a readable record for the package, use the following command –

Show the names of all packages

To show the names of all packages in the system, use the following command –

In the above article, we have learnt about – Learn Basic Commands of APT-GET and APT-CACHE for Package Management. In our next articles, we will come up with more Linux based tricks and tips. Keep reading.