One, apt command installation
The APT full name Advanced Packaging Tool, which can automatically download, configure, install binary or source-code packages, simplifies the process of managing software on Linux systems. Apt is now included in Debian and its derivative distributions, such as Ubuntu. Apt Command (package name):
- Apt-cache Search Package
- Apt-cache Show package for information about packages, such as description, size, version, etc.
- sudo apt-get install package
- sudo apt-get install Package–reinstall Reinstall package
- sudo apt-get-f install mandatory installation
- sudo apt-get Remove Package
- sudo apt-get remove Package–purge Delete package, including deletion of configuration files, etc.
- sudo apt-get autoremove automatically removes unwanted packages
- sudo apt-get update source
- sudo apt-get upgrade update installed packages
- sudo apt-get Dist-upgrade upgrade system
- sudo apt-get dselect-upgrade using Dselect upgrade
- Apt-cache depends package learn about using dependencies
- Apt-cache Rdepends package to understand a specific dependency
- sudo apt-get BUILD-DEP Package Installation-related compilation environment
- Apt-get Source Package Downloads The source code for the bundle
- sudo apt-get clean && sudo apt-get autoclean cleanup download file archive
- sudo apt-get check to see if there is a corrupted dependency
In addition to understanding the basic apt directives, you need to know some of the following apt-related files, each of which functions as follows:
- /etc/apt/sources.list set up the source for the package
- /etc/apt/apt.conf APT configuration file
- /ETC/APT/APT.CONF.D APT's fragmented configuration file
- /etc/apt/preferences version Parameters
- /var/cache/apt/archives/partial storing the packages being downloaded
- /var/cache/apt/archives Storage of downloaded packages
- /var/lib/apt/lists storing the downloaded package details
- /var/lib/apt/lists/partial Store the package details that are being downloaded
Second, dpkg command installation
Dpkg is the foundation of the Debian Package Manager and is used to install, unload, and supply information related to. deb packages. Dpkg itself is a low-level tool that itself cannot download packages from the remote package repository and handle the dependencies of the package, and the package needs to be downloaded from the remote and then installed. Dpkg Common commands:
- Dpkg-i Package.deb installation Package
- Dpkg-r Package Delete Packages
- Dpkg-p Package Delete packages (including configuration files)
- Dpkg-l package lists the files associated with the bundle
- Dpkg-l package shows the version of the bundle
- Dpkg–unpack Package.deb Unpack the contents of the Deb package
- Dpkg-s keyword Search the package content that belongs to
- Dpkg-l List of currently installed packages
- Dpkg-c Package.deb Listing the contents of the Deb package
- Dpkg–configure Package Configuration Packages
Note: More options are available through dpkg-h queries, and some instructions require Superuser privileges to execute.
Iii. Synaptic Package Manager (newly-made packages manager)
Because synaptic is GUI interface, there is no command to say, in fact, this in Ubuntu is also very little to use, more or through the Apt-get command can be done.
Iv. Aptitude Command
Similar to APT management tools, in terms of management dependencies than APT, the official has not recommended, it may be due to the 64-bit system installation 32 of the library will cause problems.
In addition to the above explained several, in fact, in the Ubuntu installation software process will still encounter some problems. Like what:
1, how to install download down is the. tar.gz software?
tar.gz or. tar.bz2 is usually the source code of the installation package, for this type of software package, the general first through the command to extract the compressed package, and then to compile, and then install. Take the. tar.gz format as an example, we will first execute tar-zxvf filename.tar.gZ to extract the package, and then execute the ./configure to Configure, execute make to compile , execute sudo make install . After the execution is complete, the software can be compiled and installed. Use make clean to remove temporary files that are generated during installation.
2, how to install the download down is the. bin software?
The extension. bin file is binary, and it is the machine language that the source program has compiled. The suffix is. bin is usually some commercial software. It is also very simple to set up. The first step, go into the program directory, execute: sudo chmod +x xxx.bin, that is, modify the file as executable. Step two, run: sudo./xxx.bin, then the program goes in and installs.
3, how to install download down is the. rpm software?
The. rpm format is the short name of Red Hat Package manager, which is launched by Red Hat and cannot be installed on Ubuntu. RPM format packages are generally used alien to convert RPM to Deb format before installing. Ubuntu does not have the default install alien, so install alien First, command:sudo apt-get install alien then convert with alien command:sudo alien xxx.rpm This step generates a Xxx.deb file with the same name, which you can then double-click or install with the dpkg command.
Software management tools for Ubuntu