In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you the steps to delete the package with the rpm instruction, analyze and describe it from a professional point of view. I hope you can get something after reading this article.
Use the rpm instruction to delete all PHP packets in 3 seconds
Laravel is a concise and elegant PHP Web development framework (PHP Web Framework). It frees you from the noodle-like clutter of code; it helps you build a perfect web APP, and every line of code can be concise and expressive.
When installing all the frameworks and packages, the first thing you must look at is the environment required by the project. You can see that Laravel requires more than 7.2.5 for PHP. Go to the virtual machine to see the version of PHP, you can check the version through php-v.
Click here is not used, PHP has been deleted, this instruction can not be executed, awkward
So Kaka uses the previous rpm-qa | grep php instruction to show you the previous version.
This version is installed with rmp, so it also needs to be uninstalled using rpm. At this time, all the packages of PHP have been deleted.
So how did Kaka be deleted?
Still using rpm-e php70w.... That's really a waste of time. Good time can't be spent on deleting files.
And some packages have dependencies, which must have happened to you when you deleted them.
This error is that the installation package you need to uninstall is being used by other packages, isn't it? Kaka teaches you to use a command to solve these problems. Rpm-e-nodeps rpm-qa | grep php
At this time, you can delete all the installation packages of PHP in about 3 seconds. Is it very nice?
2. Common parameters of rpm instruction
RPM is the abbreviation of RPM Package Manager (RPM package Manager). Although the file format name is marked with the logo of RedHat, its original design concept is open, which now includes OpenLinux, S.u.S.E. And Linux distributions such as Turbo Linux have been adopted, which can be regarded as a recognized industry standard.
The main function of rpm is to install, uninstall and upgrade.
Here are some commonly used rpm parameters for everyone to use.
-e Uninstall rpm package-I install rpm package-u upgrade rpm package-nodeps does not verify package dependencies
These parameters are frequently used by Kaka.
3. Yum installs PHP7.2
Installation source
Rpm-Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpmrpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Or you can use this.
Yum install epel-release-yrpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Install the 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 execution is completed, the version number is 7.2. it can be accessed normally in the browser. Nginx has been installed before Kaka.
These are the steps shared by the editor to delete the package with the rpm directive. If you have similar doubts, you might as well try it with reference to the above method. If you want to know more about it, please follow the industry information.
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.