Useful Basic Commands of APT GET and APT CACHE for Package Management.This article explains how quickly you can learn to install, remove, update and search software packages using apt get and apt cache commands from the command line.This article provides some useful commands that will help you to handle package management in DebianUbuntu based systems.APT GET and APT CACHE Commands.What is apt get The apt get utility is a powerful and free package management command line program, that is used to work with Ubuntus APT Advanced Packaging Tool library to perform installation of new software packages, removing existing software packages, upgrading of existing software packages and even used to upgrading the entire operating system.What is apt cacheThe apt cache command line tool is used for searching apt software package cache.In simple words, this tool is used to search software packages, collects information of packages and also used to search for what available packages are ready for installation on Debian or Ubuntu based systems.APT CACHE 5 Useful Basic Commands.Cntlm Fast NTLM authentication proxy accelerator with tunneling, written in pure C.Fresh installs of LinuxCNC are most easily created using the LiveInstall Image.This is a hybrid ISO filesystem image that can be written to a USB storage device or.Downloading and Installing.The current Webmin distribution is available in various package formats for download from Unix targzip format httpprdownloads.How To Install Deb Package In Debian Iso' title='How To Install Deb Package In Debian Iso' />How Do I List All Available Packages To list all the available packages, type the following command.How Do I Find Out Package Name and Description of Software To find out the package name and with it description before installing, use the search flag.DI5TFTOCc/UaOgqj0rwfI/AAAAAAAABAo/MF3xxX3xt68/s1600/2.jpg' alt='How To Install Deb Package In Debian Iso' title='How To Install Deb Package In Debian Iso' />Using search with apt cache will display a list of matched packages with short description.Lets say you would like to find out description of package vsftpd, then command would be.FTP server written for security.A robust, modular log coloriser.File Transfer Protocol FTP server.To find and list down all the packages starting with vsftpd, you could use the following command.How Do I Check Package Information For example, if you would like to check information of package along with it short description say version number, check sums, size, installed size, category etc.Use show sub command as shown below.Package netcat. Priority optional.Section universenet.Installed Size 3.Maintainer Ubuntu Developers lt email protected.Original Maintainer Ruben Molina lt email protected.Architecture all.Version 1. 1. 0 4.Depends netcat traditional 1.Filename pooluniversennetcatnetcat1.How To Install Deb Package In Debian Iso' title='How To Install Deb Package In Debian Iso' />To use an ISO file, Linux users could just dump the it into a usb drive to create a bootable usb stick like.MD5sum 3. 7c. 30.SHA1 0. 37. 1a. 39.SHA2. 56 eeecb. 4c.Description en TCPIP swiss army knife transitional package.This is a dummy package that depends on lennys default version of.It may be safely removed.Description md. 5 1.Bugs https bugs. Origin Ubuntu.How Do I Check Dependencies for Specific Packages Use the showpkg sub command to check the dependencies for particular software packages.For example, use the showpkg command along with package name.Package vsftpd. 2.Packages. Description Language.File varlibaptlistsin.Packages. MD5 8. Description Language en.File varlibaptlistsin.Translation en. MD5 8.Reverse Depends. ubumirror,vsftpd.Reverse Provides 5.How Do I Check statistics of Cache.The stats sub command will display overall statistics about the cache.For example, the following command will display Total package names is the number of packages have found in the cache.Total package names 5.Total package structures 5.Normal packages 3.Pure virtual packages 6.Single virtual packages 3.Mixed virtual packages 1.Total distinct versions 4.Total distinct descriptions 8.Total dependencies 2.Total verfile relations 4.Total DescFile relations 8.Total Provides mappings 8.Total globbed strings 2.Total dependency version space 1,1.Total slack space 6.Total space accounted for 1.MAPT GET 2. 0 Useful Basic Commands for Package Management.How to Update System Packages.The update command is used to resynchronize the package index files from the their sources specified in etcaptsources.The update command fetched the packages from their locations and update the packages to newer version.Ign http security.In. Release. Get 1 http security.Release. gpg 9. 33 B.Get 2 http security.Release 4. 9. 6 k.B. Ign http in. In.Release. Ign http in.In. Release. Get 3 http repo.In. Release 1. 3.B. Ign http in. In.Release. Hit http in.Release. gpg. Get 4 http security.Sources 3. 4. 8 k.B. Get 5 http in.Release. gpg 9. 33 B.How to Upgrade Software Packages.The upgrade command is used to upgrade all the currently installed software packages on the system.Under any circumstances currently installed packages are not removed or packages which are not already installed neither retrieved and installed to satisfy upgrade dependencies.Reading package lists.Done. Building dependency tree.Reading state information.Done. The following packages have been kept back.The following packages will be upgraded.However, if you want to upgrade, unconcerned of whether software packages will be added or removed to fulfill dependencies, use the dist upgrade sub command.How Do I Install or Upgrade Specific Packages The install sub command is tracked by one or more packages wish for installation or upgrading.Reading package lists.Done. Building dependency tree.Reading state information.Done. The following extra packages will be installed.The following NEW packages will be installed.Need to get 6. 7.B of archives. After this operation, 1.B of additional disk space will be used.Do you want to continue Yn Get 1 http in.B. Get 2 http in.B. Fetched 6. 7. B in 1s 3.Bs. Selecting previously unselected package netcat traditional.Reading database.Unpacking netcat traditional from.Selecting previously unselected package netcat.Unpacking netcat from.Processing triggers for man db.Setting up netcat traditional 1.Setting up netcat 1.How I can Install Multiple Packages You can add more than one package name along with the command in order to install multiple packages at the same time.For example, the following command will install packages nethogs and goaccess.Reading package lists.Done. Building dependency tree.Reading state information.Done. goaccess is already the newest version.How to Install Several Packages using Wildcard.With the help of regular expression you can add several packages with one string.For example, we use wildcard to install several packages that contains the ame string, name would be package name.How to install Packages without Upgrading.Using sub no upgrade command will prevent already installed packages from upgrading.Name no upgrade. Reading package lists.Done. Building dependency tree.Reading state information.Done. Skipping vsftpd, it is already installed and upgrade is not set.How to Upgrade Only Specific Packages.The only upgrade command do not install new packages but it only upgrade the already installed packages and disables new installation of packages.Name only upgrade.Reading package lists.Done. Building dependency tree.Reading state information. Air Conditioning Installation Labour Only Contracting . Done. vsftpd is already the newest version.How Do I Install Specific Package VersionLets say you wish to install only specific version of packages, simply use the with the package name and append desired version.Reading package lists.Done. Building dependency tree.Reading state information.Done. vsftpd is already the newest version.How Do I Remove Packages Without Configuration.To un install software packages without removing their configuration files for later re use the same configuration.Use the remove command as shown.Reading package lists.Done. Building dependency tree.Reading state information.Done. The following packages will be REMOVED.After this operation, 3.B disk space will be freed.Do you want to continue Yn Reading database.Removing vsftpd. Processing triggers for ureadahead.Processing triggers for man db.How Do I Completely Remove Packages.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |