Lecture 3
Lecture 3
⚬ apt-get
■ apt-get is lower-level and "back-end", and
supports other APT-based tools.
⚬ apt
■ apt is designed for end-users (humans) and its
output may be changed between versions
Repository
• Collection of deb packages with metadata that is
readable by the apt family
• In Debian or Ubuntu, the software repositories are
defined in /etc/apt/sources.list
• Third-party repositories can be added in Ubuntu, add
its link to the file mentioned above.
Software Listing
• apt list
• The list command allows you to list the available,
installed and, upgradeable packages.
• The command will print a list of all packages, including
information about the versions and architecture of the
package
Software Search
• apt search {…regex}
• This command is used when the user wants
to display information regarding packages
like its dependencies, download and
installation size, the sources from which the
package is available, the package’s
content’s description and more.
Software Update
• apt update.
• This command is used when we want to
download package information from all
configured sources.
Software Upgrade
• apt upgrade.
• This command is used when we want to install
available upgrades of all packages currently
installed on the system from the sources
configured via sources.list.
• If new packages are required to satisfy
dependencies, they will be installed, but already
existing packages will never be removed.
• If for a package to be upgraded, the removal of
an installed package is required, the upgrade
will not be performed.
Software Install
• apt install […package name]
• apt install apache2
Software Details
• apt show {package name}
• apt show apache2
Software Deletion
• apt remove […package-name]
• apt remove apache2
Software Deletion
(With all dependencies removed)