In today's work, I don't know if it is due to my personal negligence. the ifconfig command tool is not available on the centos7 system that is installed. when executing the whichifconfig command, the executable file path without the command is displayed, the ifconfig executable file is not found in the/sbin/directory. I found many ways on the Internet, and even wanted to uninstall and reinstall my system. of course, this idea was not implemented because I did not recognize my optical drive when I reinstall the system; eventually I had to find ifconfi.
In my work today, I don't know if I have neglected to install the ifconfig command tool on centos 7, when the which ifconfig command is executed, the path of the executable file without the command is displayed, and the ifconfig executable file is not found in the/sbin/directory. I found many ways on the Internet, and even wanted to uninstall and reinstall my system. of course, this idea was not implemented because I did not recognize my optical drive when I reinstall the system; in the end, I had to find the ifconfig work package. I found on the Internet that the ifconfig toolkit is generally named "net-work *". then I mounted the optical drive installed on the centos system to the system, search for the existence of a net-work * file and find the command flavor. /-name net-work *. soon I found a net-work *. rpm file, and then I copy it to my system and execute rpm-ivh net-work *. run the rpm command to install ifconfig. execute the ifconfig command to display the Nic configuration information. Obviously, a large part of other tools or software is also feasible through this method, copy the corresponding software package to the system in a feasible way, and then execute the installation command. There are also some that although our system does not install software, this software exists.
Package file, you only need to execute the corresponding installation command, such as installing
Run the rpm-ivh vim command or run
Sudo install vim can also be used. This is a very direct method. if you want to confirm
To check whether software exists, simply execute this command. if vim software is not installed
After executing vim test.txt, you will be prompted that vim does not exist.
Shows the installation operations you want to perform with vim.
These operations are based on the premise that devices cannot connect to the Internet, such
If you can connect to the Internet, all of the above explanations can be omitted. What is your mission?
If the installation command does not exist, run the installation command. if the system does not have its own software package, you can
Find the corresponding software package directly online, and download and install it. most of the software
Can be directly installed through the network;