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

The method of downloading and installing Software in linux

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Xiaobian to share with you how to download linux installation software, I hope you read this article after the harvest, let us discuss it together!

Linux is a set of free to use and freely spread Unix-like operating system, is a POSIX and UNIX-based multi-user, multi-task, multi-threaded and multi-CPU support operating system. It runs major UNIX tools, applications, and network protocols. It supports both 32-bit and 64-bit hardware. Linux inherits Unix's network-centric design idea and is a stable multi-user network operating system. It is very convenient and comfortable to use.

First of all, we must pay attention to downloading the correct software installation package when downloading the Linux system.

Second, to know how to install software under Linux, we first understand the Linux application installation package.

Linux software installation packages are divided into three categories:

tarpackage It is tarpackaged using UNIX system packaging tools such as software-1.2.3-1.tar.gz

rpm package It is a package encapsulation format provided by Redhat Linux, such as software-1.2.3-1.i386.rpm

The dpkg package is a package encapsulation format provided by Debain Linux, such as software-1.2.3-1.deb.

Most Linux application packages are also named according to a certain rule, which follows:

Name-Version-Revision-Type

For example:

1) software-1.2.3-1.tar.gz means:

Software name: software version number: 1.2.3

Fixed Version: 1 Type: tar.gz, Description is a tar package.

2) sfotware-1.2.3-1.i386.rpm

Software name: software version number: 1.2.3

Corrected version: 1 Available platforms: i386, for Intel 80x86 platforms.

Type: rpm, indicating that it is an rpm package.

Contents of the installation package:

A Linux application package can contain two different kinds of content:

One is executable files, which can be run directly after unpacking. All software packages available in Windows are of this type. After installing this program, you can use it, but you can't see the source program. And when downloading, pay attention to whether this software is the platform you are using, otherwise it will not install properly.

The other is source code, which means that after unpacking, you need to use a compiler to compile it into an executable file. This is almost non-existent in Windows because Windows is not open source in its thinking.

Usually, tar packages are source programs, while rpm and dpkg packages are often executable programs. Generally a software will always provide a variety of packaging format installation program. You can choose according to your own situation.

Installation method:

1) tar pack

Decompress files: Execute the "tar -xzvf package name" command to complete decompression and unpacking in one step

Implementation of ".../ The configure command prepares for compilation

Execute "make" command to compile software

Execute "make install" to complete software installation

Execute "make clean" command to delete temporary files generated during installation

2) rpm package

There are two ways to install rpm packages:

Method 1: rpm command

Installation: rpm -ivh package name.rpm

Some options:

-i Install software

-t Test installation, not real installation

-p shows installation progress

-f Ignore any errors

-U upgrade installation

-v Check whether the kit is installed correctly

Uninstall: rpm -e package

Note that the software name is used later, not the package name

Query: Query the software package installed on the current system: rpm -qa 'package name'

Method 2: Yum Command

yum (Yellow dog Updater, Modified) is a Shell front-end package manager for Fedora and RedHat and SUSE. Based on RPM package management, RPM packages can be automatically downloaded and installed from specified servers, dependencies can be automatically handled, and all dependent software packages can be installed at one time without cumbersome downloading and installation. Yum provides commands to find, install, and delete a package, a group, or even all of them, and the commands are simple and easy to remember.

Installation: yum install package name

Some other uses of yum:

yum list List all installable software commands

yum updata upgrade package

yum remove uninstall package

yum clean Clear cache

For example:

yum install gcc Installazione gcc

yum install gcc-c++ install g++

yum install gdb Install gdb

3) Deb package

Two ways:

dpkg command

install: dpkg -i package name.deb

uninstall: dpkg -e software name

Query: Query the package installed on the current system: dpkg -l 'package name'

apt-get command

The apt-get command can only be used for packages in repositories, and cannot be used to process deb packages downloaded by yourself. To process deb packages downloaded by yourself, you can only use the dpkg command.

To view the installation path of a software:

View file installation path: whereis filename

Query the path of the running file: which file name

After reading this article, I believe you have a certain understanding of the method of downloading and installing linux software. If you want to know more about it, welcome to pay attention to 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.

Share To

Servers

Wechat

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

12
Report