![]() Just like the YUM, to remove packages with DNF we also use remove instead of install in the syntax.Įxample: dnf remove php-5.4.86_64.rpmĭo you know? We can directly download the RPM package of any software from the official or unofficial repository available on the Linux system using yum downloader command. It works the same as Yum even the syntax will also be the same, the only difference will be the command starts with dnf instead of yum.Įxample: How to use it dnf install php-5.4.86_64.rpm DNF uninstall command ![]() Just like a yum package manager, dnf can be used to install RPM software along with the dependencies that particular package requires. Moreover, to see the total count of the installed software or packages use: yum list installed | wc -l Use DNF to install RPM packages If you are comfortable with YUM, you can also use it to see the list of a total number of RPM packages installed on your system, currently. ![]() In this way:Įxample: yum remove php-5.4.86_64.rpm Yum command to list all installed RPM packges If you want to use the Yum to remove any installed package then instead of using install use remove in the command. Is this ok : Yum package uninstall command Install 1 Package (+9 Dependent packages) > Package mailcap.noarch 0:2.1.41-2.el7 will be installed > Package httpd-tools.x86_64 0:2.4. will be installed > Package centos-logos.noarch 0:70.0. will be installed ![]() > Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.86_64 > Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.86_64 > Processing Dependency: /etc/mime.types for package: httpd-2.4.86_64 > Processing Dependency: httpd-tools = 2.4. for package: httpd-2.4.86_64 > Package httpd.x86_64 0:2.4. will be installed > Processing Dependency: httpd for package: php-5.4.86_64 Loading mirror speeds from cached hostfile Marking php-5.4.86_64.rpm to be installed Resolve the dependencies requires by PHP to install which was not possigble with the above RPM ~]# yum install php-5.4.86_64.rpmĮxamining php-5.4.86_64.rpm: php-5.4.86_64 We used Yum install command to install the same package it has successfully Yes, we can use YUM to install RPM packages, the benefit of this command as told above, it has the capability to download & install the dependencies a software needs while installing it on CentOS 8/7/6 or RHEL 8/7/6 based Linux systems…Įxample: How to use it yum install php-5.4.86_64.rpm Use RPM to list all installed packagesįor information to see what are the packages currently installed on your system you can use this command: rpm -qaįurthermore, to see the total number of packages installed on your system in figures we can use a command: rpm -qa | wc -l Yum command to install rpm with dependencies The difference is the flag used with the RPM command i.e -e for uninstalling whilst if you use -i, the same command will use to install. If you want to use the same RPM command to uninstall or remove some installed package or software then it will be like this:Įxample to use it: rpm -e php-5.4.86_64.rpm Httpd is needed by php-5.4.86_64 RPM uninstall command The output for the above command: ~]# rpm -i php-5.4.86_64.rpm If you have some packages that need some extra packages while installing it, use the YUM command shown in this article. So, in this way, we can simply use RPM command to install any rpm packages, however, it not resolve the dependencies of any packages require and gives error most of the time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |