In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Linux software installation method is what, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
Compared with windows systems, the Linux installer is more complex, and many require root users to install. The common installation methods are as follows
Source code installation
Rpm package installation
Yum installation (RedHat, CentOS)
Apt-get installation (debian,ubuntu)
Source code installation
Take installing gcc as an example, log in to https://gcc.gnu.org/ and download the desired version of the gcc installation package
Upload gcc-4.1.2.tar.gz to any directory of the Linux server and decompress it
Extract the directory and execute the shell command configuration
Extract the directory and execute the shell command make install
The advantage is that the installation directory, software version and so on can be configured at will. The same installation package can be installed in any version of Linux.
The disadvantage is that the threshold of installation is high, the configuration is complex, and different software configuration projects are different. Installation is prone to failure. Successful installation will sometimes damage the original system.
Rpm package installation
Common command parameters
View rpm-qa
Install rpm-ivh package name
Uninstall rpm-e package name
Http://rpm.pbone.net/ is a website that searches for rpm packages. Look in the search box.
Search results appear
Click the first result to enter the details interface, and you can see the details of the rpm package, including dependencies and contents of the package.
The advantage is that there is no need for configuration during installation, and you can choose a version.
The disadvantage is that the dependency of the installation package needs to be maintained manually, installation A finds dependence on B, installation B finds dependence on C. Sometimes it can be a test of patience.
Install gdb as an example
Determine the dependency gcc-> gathers +-> gdb,gdb dependencies on galleys, journals, and gcc
Gcc
Rpm-ivh cpp-4.1.2-42.el5.i386.rpm
Rpm-ivh kernel-headers-2.6.18-92.el5.i386.rpm
Rpm-ivh glibc-headers-2.5-24.i386.rpm
Rpm-ivh glibc-devel-2.5-24.i386.rpm
Rpm-ivh libgomp-4.1.2-42.el5.i386.rpm
Rpm-ivh gcc-4.1.2-42.el5.i386.rpm
Glossy +
Rpm-ivh libstdc++-devel-4.1.2-48.el5.i386.rpm
Rpm-ivh gcc-c++-4.1.2-48.el5.i386.rpm
Gdb
Rpm-ivh gdb-7.0.1-23.el5.i386.rpm
The installation is not complete until the dazzling packages above have been installed in order.
Rpm package naming rules
Gcc-c++-4.1.2-48.el5.i386.rpm
Name-version-arch (.src) .rpm
Name: package name
Version: software package version with primary, secondary, and revision
Arch: publisher version, fc, el, mga, tr... Hardware platform, including: i386, i486, i586, i686, x86 / 64, ppc, sparc, alpha
Src: source code package
YUM
Based on RPM package management, RPM packages can be downloaded and installed automatically from specified servers, dependencies can be automatically handled, and all dependent software can be installed at once.
Yum install gdb
The advantage is that dependencies are managed automatically.
The disadvantage is that you need to connect to the public network and install the latest version on the specified server.
Apt-get
Apt-get is a linux command for deb package-managed operating systems. It is mainly used to automatically search, install, upgrade, and uninstall software or operating systems from Internet software repositories.
Apt-get install gdb
After reading the above, have you mastered the method of installing Linux software? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.