In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how to use rpm to delete the correct posture of the package. The content is very detailed. Interested friends can refer to it for reference. I hope it can help you.
1. Use rpm command to delete all PHP packages in 3 seconds
When installing all frameworks and packages, the first thing you must look at is the environment you need for your project. You can see that Larave requires PHP version 7.2.5 or above.
Go to the virtual machine to see the PHP version, you can check the version with php -v.
Click here is not used, PHP has been deleted by click, this command can not be executed, embarrassing...
So, click, click,| The grep php command displays information to show you the version before click
This version is installed by rmp, so it also needs to be uninstalled by rpm. All PHP packages have been removed.
How did that click get deleted?
Still using rpm -e php70w... That would be a waste of time. Good time could not be spent deleting files.
And some packages have dependencies, which you must have encountered when deleting them.
This error means that the installation package you need to uninstall is being used by another package.
Kaka teaches you to use a command to solve these problems. rpm -e --nodeps rpm -qa | grep php
At this time, it takes about 3 seconds to remove all PHP installation packages. Is it very nice?
II. Common parameters of rpm command
The main function of rpm is to install, uninstall and upgrade.
Here are a few common rpm parameters for everyone to use.
-e uninstall rpm package-i install rpm package-u upgrade rpm package--nodeps do not verify package dependencies
These parameters are frequently used by Kaka.
3, yum install PHP 7.2
installation source
rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Or you can use this.
yum install epel-release -y
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Install required extensions
yum -y install php72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
After the completion of the implementation to see the version number is 7.2 in the browser inside can be normal access, nginx is a click before the installation has been good.
About the use of rpm to delete the correct posture is how to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.