Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install application software in Linux

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to install application software in Linux". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

With the new operating system installed, it is inevitable to install some new software. But installing applications in Linux is a little different from installing applications in Windows. And for Linux beginners, installing software is a headache. As many Linux applications are released in the form of source code, it requires users to configure and compile source programs according to the actual situation of their own system and their own needs before they can use these software.

Most Linux beginners often don't know how to configure and compile. Here is a brief introduction to how to install Linux applications. Before installing the application, make sure that the compilation environment in which the software is installed, such as the compiler GCC, the necessary library files, etc. However, users do not need to worry about these issues, as most Linux distributions already have the GCC compiler installed by default.

At present, there are two common forms of popular software packages, one is intelligent software packages represented by RPM and deb packages, and the other is compression in the form of file.tar.gz. This article will discuss the installation method of file.tar.gz and the installation method of intelligent software package in text environment and graphics environment.

I. Source code installation

The source code of an application is usually in file.tar.gz or file.tgz format, that is, it is packaged in tar and then compressed in gzip.

Take the application software xfce-3.8.7.tar.gz as an example, enter the current directory of the software, and then use gzip to extract: # gzip-d xfce-3.8.7.tar.gz (Note:-d for decompression). Then unpack it with tar: # tar-xvf xfce-3.8.7.tar. Because tar and gzip are often used together, tar also provides a parameter that automatically calls gzip to extract: # tar-xzvf xfce-3.8.7.tar.gz.

After entering the newly created directory after decompression, there is an executable file-configure, which is used to configure the software in general application software. It has many parameters and is very flexible in usage. Of course, the installation of different software parameters are also different, the specific parameters, you can use the command: #. / configure help to get detailed help. For example,. / configure-- prefix=/usr/local/mysql (indicates that the installation directory of the setup software is: / usr/local/mysql)

After running the #. / configure [options] configuration software, it will generate an installation configuration file Makefile based on your current system, compilation, and installation information. The Makefile file is usually used to compile and install the software. When you run the make command, the system automatically compiles and installs the software according to the settings in the Makefile file. If the compilation passes smoothly, run the # make install command to install it.

Second, smart package installation

Nowadays, there are many kinds of software available in the form of smart packages, such as RedHat Linux's RPM, Debian Linux's DEB, KISS, BSD and Slackware. RPM and Debian almost dominate the world of Linux package management, and they are the first applications widely adopted by most commercial Linux distributions. Here's how to install software packaged in RPM and Deb formats.

RPM is an acronym for RedHat Package Manager and can only be used on systems with RPM software installed, but it seems that most Chinese Linux distributions currently support RPM packages.

1. Manage with command

# rpm [options] abc.rpm

For example, when installing python-1.5.2-35.i386.rpm software, you can use the following command: # rpm-ivh python-1.5.2-35.i386.rpm.

If you want to know about the RPM package, you can use the command: # rpm ivh python-1.5.2-35.i386.rpm.

If you want to know which files python-1.5.2-35.i386.rpm will install on your system, you can use the following command: rpm-qpl python-1.5.2-35.i386.rpm.

Since there are many parameters in RPM, we will not enumerate them one by one. To get more parameters about RPM, you can use the command: # man rpm to get detailed help information.

two。 Graphical interface tool management

Compared to the command mode, it is very easy to install, upgrade, uninstall and query RPM packages in a graphical environment, because Linux provides several powerful RPM package management tools. We recommend using Linux's graphical management tools to maintain RPM software packages. GnoRPM in GNOME and Kpackage in KDE are powerful RPM package management tools. As the most common window manager in the Chinese Linux distribution used by domestic users is KDE, the author takes Kpackage in KDE as an example to introduce how to use RPM package management tools.

Click Start → System tools → Kpackage, the Kpackage interface appears, and the RPM database in the Linux system is analyzed. It divides the installed software in the form of RPM package into several tree directories such as Amusements, Application, Development, Document, Extension, Extentions, Networking, System Environment, User Interface and X11 according to its function, with corresponding file icons and names in each directory. To install or upgrade the software, just click the appropriate button on the toolbar to open the dialog box to open the file, select the RPM file to install, click the OK button, if there is no shortage of the necessary runtime, start to install the software. When uninstalling the software, select the appropriate software with the mouse and click the Uninstall button on the right.

This is the end of "how to install applications in Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report