Yum Install--nogpgpcheck <rpm name>
First, Apt the relevant documents
/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/ |
Storing packages that have already been downloaded |
/var/cache/apt/archives/partial |
Store the package you are downloading |
/var/lib/apt/lists/ |
Store package details that have already been downloaded |
/var/lib/apt/lists/partial/ |
Store the package details that are being downloaded |
Second, Apt-getsubcommands for Commands
Update |
Update package List |
Upgrade |
Upgrade all packages in the system |
Install |
Install packages |
Remove |
Uninstalling packages |
Autoremove |
Delete only packages that do not need to be downloaded again |
Purge |
Complete removal of packages (including configuration files) |
Source |
Download source code |
Build-dep |
Automatically download and install the packages needed to compile a software |
Dist-upgrade |
Upgrade the entire release version |
Dselect-upgrade |
Install the dselect option to upgrade |
Clean |
Remove all upgrade packages for local cache |
AutoClean |
Remove unused packages from the local cache |
Check |
Check if there is a problematic dependency |
Example : $ sudo apt-get install php5-mysql apache2 $ sudo apt-get update && sudo apt-get upgrade |
Third, Apt-getCommand Options
-D,--download-only |
Download only, do not install |
-F,--Fix-broken |
Fix dependency issues (for install and remove subcommands) |
-M,--ignore-missing,--fix-missing |
Missing packages are ignored. A package that cannot be downloaded is encountered and automatically ignored |
--no-download |
Download package is forbidden. With- m , you can make apt use only packages that have already been downloaded |
-Q,--Quiet |
Silent mode, output information suitable for log |
-S,--simulate,--just-print |
Simulate the test, do not make the actual operation, do not change the system |
-y,--Yes,--assume-yes |
Automatically answer Yes when asked by the system |
-U,--show-upgraded |
Show upgraded Packages |
-V,--verbose-versions |
Displays the full version number of the installed and upgraded packages |
-B,--Compile,--Build |
Compile after the source package download is complete |
--ignore-hold |
Ignore a reserved package |
--no-upgrade |
Do not upgrade packages |
--force-yes |
Mandatory answer Yes |
--print-uris |
Only the package address is agreed, not installed |
--purge |
Complete removal, including configuration files |
--reinstall |
Reinstall package |
Iv. Apt-cacheCommand
Function: Search for the name of a package or show details of a package |
Search for mysql packages |
$ apt-cache Search MySQL |
View The detailed version number of the SSH package |
$ apt-cache Show ssh |
Five, Red Hat,Fedoraand theUbuntuPackage Operation comparison
Task |
Red Hat,Fedora |
Ubuntu |
Basic information |
Package suffix |
*.rpm |
*.deb |
Software Source configuration file |
/etc/yum.conf |
/etc/apt/sources.list |
Install, remove, upgrade packages |
Update package List |
automatically execute each time yum is run |
Apt-get Update |
Installing software from software Warehouse software |
Yum Install package |
Apt-get Install Package |
Install a downloaded package |
Yum Install pkg.rpm Rpm-i pkg.rpm |
Dpkg-i Pkg.deb Pkg--install Pkg.deb |
Remove Package |
RPM-E Package |
Apt-get Remove Package |
Package upgrade Check / test |
Yum Check-update |
Apt-get-s Upgrade Apt-get-s Dist-upgrade |
Upgrade Packages |
Yum Update RPM-UVH [args] |
Apt-get Upgrade |
Upgrade the entire system |
Yum Upgrade |
Apt-get Dist-upgrade |
Package information |
Get information about a package |
Yum Search Package |
Apt-cache Show Package |
Get information on all packages |
Yum List available |
Apt-cache Dumpavail |
Show all installed software |
Yum List installed Rpm-qa |
Dpkg-l Dpkg--list |
To obtain information about an installed package |
Yum Info Package RPM-QI Package |
Dpkg--status Package |
Lists the list of files that are included in an installed package |
RPM-QL Package |
|
List the documents that are included with an installed package |
RPM-QD Package |
No |
List the configuration files that are included with an installed package |
RPM-QC Package |
No |
Displays a list of packages on which a package depends |
RPM-QR Package |
Apt-cache depends package |
Show reverse dependencies for a package |
Rpm-q-whatrequires [args] |
Apt-cache Rdepends Package |
Package file Information |
Get information about a package file |
Rpm-qpi pkg.rpm |
Dpkg--info Pkg.deb |
Get a list of files that a package file contains |
RPM-QPL pkg.rpm |
Dpkg--contents Pkg.deb |
Get the documents contained in a package file |
RPM-QPD pkg.rpm |
No |
Get the configuration file that a package file contains |
RPM-QPC pkg.rpm |
No |
Package Decompression |
Rpm2cpio pkg.rpm | Cpio-vid |
Dpkg-deb--extract Pkg.deb |
Search for a file that is installed by which package |
Rpm-qf/file/name |
Dpkg-s/file/name Dpkg--search/file/name |
Search all packages that provide a file |
Yum Provides/file/name |
Apt-file Search/file/name |
Miscellaneous |
Displays the status of the local package cache |
No |
Apt-cache Stats |
Verifying all installed Packages |
Rpm-va |
Debsums |
Delete all packages that are cached locally |
Yum Clean Packages |
Apt-get Clean |
Remove obsolete packages from the local cache only |
No |
Apt-get AutoClean |
Remove all package information |
Yum Clean headers |
Apt-file Purge |
From for notes (Wiz)
List of attachments
Ubuntu vs. apt vs. Yum