The apt tool suite also includes the apt-cache tool to query Management from console to perform system installation and major system Note that apt-get now also installs recommended packages asĭefault, and thanks to its robustness it's the preferred program for package Note that you must be logged in as root to perform any commands that modify Obsolete version if upgrading would need an extra package to be installed, forĪ new dependency to be satisfied. (The command upgrade keeps a package at its installed Upgrade, installing extra packages or removing packages, run: To upgrade all the packages on your system, and, if needed for a package To upgrade all the packages on your system (without installing extra packages To list all packages for which newer versions are available, run: To remove the foo package and its configuration files from your system, run: To remove the foo package from your system, run: To install the foo package and all its dependencies, (you should execute this regularly to update your package lists) To update the list of packages known by your system, you can run: debĪrchives from a source specified in /etc/apt/sources.list. Unlikeįiles, it works with the packages proper name and can only install. Packages from multiple sources using the command line. For usage in scripts or advanced use cases, apt-get is stillĪpt-get provides a simple way to retrieve and install The apt tool merges functionality of apt-get and apt-cacheĪnd by default has a fancier colored output format, making it more pleasant for The following is an overviewĪpt-get install package -> apt install packageĪpt-get remove package -> apt remove packageĪpt-cache search string -> apt search stringĪpt-cache policy package -> apt list -a packageĪpt-cache show package -> apt show packageĪpt-cache showpkg package -> apt show -a package This means some popular commands likeĪpt-cache show now can also be called simply via Starting with Debian Jessie, some frequently used apt-getĪnd apt-cache commands have an equivalent via the newĪpt binary. In /usr/share/doc/apt-doc/guide.html/index.html (you will For more information, see the User's Guide It provides commandline tools for searching and managing packages,Īnd for querying information about them, as well as low-level access to allįeatures of the libapt-pkg library. The Debian packaging system which provides the apt-get List the installation status of packages containing the string (or regularĪPT is the Advanced Package Tool, an advanced interface to Remove a package (including its configuration files): dpkg -purge Remove a package (but not its configuration files): dpkg -remove That the 'configure' operation takes as its argument a package name (e.g.,įoo), not the name of a Debian archive file (e.g.,Įxtract a single file named "blurf" (or a group of files named "blurf*") from aĭebian archive: dpkg -fsys-tarfile foo_b | tar -xf. The files listed in the conffiles for this package. Among other things, this action runs the postinst (see Section 7.6, “What is a Debian preinst, postinst, prerm, and postrm script?”) script associated with the package. Preinst (see Section 7.6, “What is a Debian preinst, postinst, prerm, and postrm script?”) script associated with theĬonfigure a package that already has been unpacked: dpkg -configureįoo. ThisĬommand removes any already-installed version of the program and runs the Usable state some files may need further customization to run properly. Operation does not necessarily leave the package in a Unpack (but do not configure) a Debian archive into the file system of the hardĭisk: dpkg -unpack foo_b. Install a package (including unpacking and configuring) onto the file system of Print out the control file (and other information) for a specified package:
0 Comments
Leave a Reply. |