CentOS 7 Yum and RPM Options

Options of the yum command:

  • yum check-update: List all software that can be updated.
  • yum update: update all software.
  • yum install: Only install the specified software.
  • yum update : Only update the specified software.
  • yum list: Get the software installation status in the system, and you can also query the list of software packages available in the software warehouse.
  • yum list installed: Indicates that only the software packages installed in the system are listed.
  • yum list available: Indicates that only software packages that are available (not installed) in the software warehouse are listed.
  • yum list updates: Indicates that only software packages that can be upgraded are listed.
  • yum remove : Uninstall a specified software.
  • yum search : Find the specified software package.
  • yum info: Query the description information of the package, such as “yum info httpd”
  • Command to clear the cache:
  • yum clean packages: Clear the cache directory Package.
  • yum clean headers: Clear headers in the cache directory.
  • yum clean oldheaders: Clear the old headers in the cache directory.
  • yum clean, yum clean all: Clear the packages and old headers in the cache directory.

Options of the rpm command:

  • -q: Query whether the software package with a known name has been installed;
  • -qp: Query the RPM software package files that have not been installed;
  • -qa: Display a list of all software installed in the current system by RPM;
  • -qi: View the specified software Package name, version, license agreement, usage description and other detailed information (–info);
  • -ql: Display a list of all directories and files installed by the specified package in the current system (–list );
  • -qf: View which package is installed by the specified file or directory (–file);
  • -qpi: View the name, version, Detailed information such as license agreement and usage description;
  • -qpl: View the list of all target directories and files that the software package is ready to install;
  • -i: Install in the current system ( install) a new RPM software package;
  • -e: uninstall the specified name of the software package;
  • -U: check and upgrade a certain software package in the system, if the software If the package is not installed originally, it is equivalent to the “-i” option;
  • -F: Check and update a certain software package in the system, if the software package has not been installed before, abort the installation;< /li>
  • -h: During the installation or upgrade process, display the installation progress with the # sign;
  • -v: Display the detailed information during the software installation process;
  • – -force: Forcibly install a certain software package. You can use this option when you need to replace the installed software package and files, or install a software older than the currently used software version;
  • — nodeps: When installing, upgrading, or uninstalling a software package, it does not check the dependencies with other software packages.
  • –addsign: Add a new signature certificate to the specified software package.
  • –allfiles: Install all files.
  • –allmatches: Delete files that match the specified software package.
  • –badreloc: When an error occurs, reconfigure the file.
  • –buildroot: Set the directory to be used as the root directory when generating the software package.
  • –changelog: Display the change log of the software package.
  • –checksig: Check the signature verification of the package.
  • –clean: After completing the packaging of the software package, delete the directory created during the packaging process.
  • –dbpath: Set the directory where you want to store the rpm database.
  • –dump: Display the verification information of each file, which needs to be used with the -l parameter.
  • –excludedocs: Do not install files when installing software packages.
  • –excludepath: Ignore all files in the specified directory.
  • –ftpproxy: Specify the ftp proxy server.
  • –ftpport: Set the communication port used by the FTP server or proxy server.
  • –help: Online help.
  • –httpProxy: Specify http proxy server.
  • –httpport: Set the communication port used by the http server or proxy server.
  • –ignorearch: Do not verify the correctness of the package structure.
  • –ignoreos: Do not verify the correctness of the package structure.
  • –ignoresize: Do not check whether the disk space is sufficient before installation.
  • –includedocs: Install the files at the same time as the package is installed.
  • –initdb: Confirm that the correct database is available.
  • –justdb: Update the database without changing any files.
  • –nobulid: Do not execute any completion stage.
  • –nofiles: Do not verify file attributes.
  • –nogpg: Skip all gpg signature verification.
  • –nomd5: Do not use md5 encoding calculation, confirm the size and correctness of the file.
  • –nopgp: Skip all pgp signature verification.
  • –noorder: Do not rearrange the installation order of the software packages in order to meet the correlation between them.
  • –noscripts: Do not execute any installation script files.
  • –notriggers: Do not execute any script files in the package.
  • –oldpackage: Upgrade to the old version of the package.
  • –percent: When the software package is installed, the percentage of completion is displayed.
  • –pipe: Establish a pipe to convert the output result into the input data of the execution instruction.
  • –perfix: If you reconfigure the file, put the file in the specified directory.
  • –provides: Query the compatibility provided by the package.
  • –queryformat: Set the representation method of the file header.
  • –querytags: List the tags that can be used in the file header format.
  • –rcfile: Use the specified configuration file.
  • –rebulid: Install the original code package and regenerate the binary file package.
  • –rebuliddb: Rebuild a copy of the database based on the existing database.
  • –recomplie: The effect of this parameter is similar to rebulid. It also installs the original code software package and does not generate the software package.
  • –relocate: Relocate the files that would have been placed in the original directory to the new directory.
  • –replacefiles: Forcibly replace files.
  • –replacepkgs: Forcibly replace the software package.
  • –requires: Query the compatibility required by the software package.
  • –resig: Delete the existing certificate and regenerate the signature certificate.
  • –rmsource: After the package is packaged, delete the original code.
  • –rmsource : Delete the original code and the specified file.
  • –root : Set the directory that you want to be the root directory.
  • –scripts: List the script variables of the installation package.
  • –setperms: Set file permissions.
  • –setugids: Set file owner and group.
  • –short-circuit: directly skip the steps of the designated completion stage.
  • –sign: generate gpg or pgp signature authentication.
  • –target=: Set the installation platform of the generated software package.
  • –test: Only for testing, not really installing the package.
  • –timecheck: Set the check time in seconds.
  • –triggeredby: Query the packager of the package.
  • –triggers: Display the packaging scripts in the software package.
  • –verify: equal to the -q parameter.
  • –version: Display version information.
  • –whatprovides: Query the compatibility of the software package to the specified features.
  • –whatrequires: Query the compatibility of the software package for the specified features.

———————— This concludes this article, thanks for reading————————

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4849 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.