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

Software installation equipment identification

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

# Software installation #

[abrt-addon-ccpp]-[2.1.11-19] .[ e17] .[ x86 _ 64] .rpm # rpm ending for redhat operating system

|

Software name Software version Software applies 64-bit suffix

The system of

# 1.rpm###

Rpm-I name.rpm # installation

-v name.rpm # shows the progress of installation

-h name.rpm # specify encryption method

-ivh name.rp # # installation

-e name # # Uninstall

-ql name # query the files generated by the software

-qlp name.rpm # # query what files are generated after the software is installed

-qa # query the names of all software installed on the system

-qa | grep name # # query whether the software is installed

-Q name # # query whether the software is installed

-qp name.rpm # # query the installed name of the software installation package

-qf filename # # check which installation package filename belongs to

-ivh name.rpm-- force # # forced installation

-qi name # # View software information

-Kv name.rpm # detect whether the package has been tampered with

-qp name.rpm-- scripts # detect actions performed by the software during installation or uninstallation

# 2.yum###

The most important function of the upper software management tool is to solve the dependence of the software.

The premise that yum can be put into use is that there is a yum source and a file pointing to the configuration source.

Yum list all # list all installation packages

[root@foundation28 ~] # yum list all

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Installed Packages

GConf2.x86_64 3.2.6-8.el7 @ anaconda/7.1

ModemManager.x86_64 1.1.0-6.git20130913.el7 @ anaconda/7.1

ModemManager-glib.x86_64 1.1.0-6.git20130913.el7 @ anaconda/7.1

NetworkManager.x86_64 1VR 1.0.0-14.git20150121.b4ea599c.el7

@ anaconda/7.1

NetworkManager-adsl.x86_64 1VR 1.0.0-14.git20150121.b4ea599c.el7

@ anaconda/7.1

NetworkManager-config-server.x86_64 1:1.0

Yum list installed # list the installed ones

[kiosk@foundation28 Desktop] $yum list installed

Loaded plugins: langpacks, product-id, subscription-manager

Installed Packages

GConf2.x86_64 3.2.6-8.el7 @ anaconda/7.1

ModemManager.x86_64 1.1.0-6.git20130913.el7 @ anaconda/7.1

ModemManager-glib.x86_64 1.1.0-6.git20130913.el7 @ anaconda/7.1

NetworkManager.x86_64 1VR 1.0.0-14.git20150121.b4ea599c.el7

@ anaconda/7.1

NetworkManager-adsl.x86_64 1VR 1.0.0-14.git20150121.b4ea599c.el7

@ anaconda/7.1

NetworkManager-config-server.x86_64 1VR 1.0.0-14.git20150121.b4ea599c.el7

@ anaconda/7.1

NetworkManager-glib.x86_64 1VR 1.0.0-14.git20150121.b4ea599c.el7

@ anaconda/7.1

Yum list available # list what is not installed

[kiosk@foundation28 Desktop] $yum list available

Loaded plugins: langpacks, product-id, subscription-manager

Available Packages

389-ds-base.x86_64 1.3.3.1-13.el7 Server

389-ds-base-libs.x86_64 1.3.3.1-13.el7 Server

ElectricFence.i686 2.2.2-39.el7 Server

ElectricFence.x86_64 2.2.2-39.el7 Server

GConf2.i686 3.2.6-8.el7 Server

Yum remove software # Uninstall the software

Yum install software # install the software

Yum search keyword # search software related to keyword

Yum whatprovides file # search for the package containing this file

[root@foundation28 ~] # yum whatprovides / yum/ls/

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

No matches found

[root@foundation28 ~] # yum whatprovides / bin/ls/

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Coreutils-8.22-11.el7.x86_64: A set of basic GNU tools commonly used in shell

: scripts

Repo: @ anaconda/7.1

Matched from:

Filename: / bin/ls/

Yum reinstall software # re-install software

Yum localinstall third-party software # install third-party software and resolve dependencies

Yum infosoftware # query software information

Yum groups list # list software groups

Yum groups install # installation group

Yum groups remove # Uninstall group

Yum groups info# View group information

# Establishment of official software repository #

Server source side

You need an installation image that matches this machine, rhel-server-7.0-x86_64-dvd.iso, which can be downloaded from the official website

two。 Mounting

[kiosk@foundation28 Desktop] $mount / mnt/rhel-server-7.0-x86_64-dvd.iso / var/www/html/rhel7.1

Mount: only root can do that # only root users can execute

[kiosk@foundation28 Desktop] $su-root # switch to root user

Password:

Last login: Thu Oct 27 16:32:18 CST 2016 on pts/0

[root@foundation28 ~] # mount / mnt/rhel-server-7.0-x86_64-dvd.iso / var/www/html/rhel7.1 # Mount to the specified file

[root@foundation28 ~] # df

Filesystem 1K-blocks Used Available Use% Mounted on

/ dev/sda9 130808420 32020876 98787544 25 /

Devtmpfs 1881932 0 1881932 / dev

Tmpfs 1891380 488 1890892 / dev/shm

Tmpfs 1891380 9300 1882080 1% / run

Tmpfs 1891380 0 1891380 / sys/fs/cgroup

/ dev/sda7 198380 111212 87168 57% / boot

/ dev/loop0 3798292 3798292 / var/www/html/rhel7.1 # indicates that it has been mounted

3. Configure native yum source pointing to

[root@foundation28 ~] # vim / etc/yum.repos.d/yum.repo

4. Install shared Services

[root@foundation28 ~] # yum install httpd-y # installation service

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Server | 4.1 kB 00:00

Package httpd-2.4.6-31.el7.x86_64 already installed and latest version

Nothing to do

[root@foundation28 ~] # systemctl stop firewalld # turn off the firewall

[root@foundation28 ~] # systemctl start httpd # enable the service

[root@foundation28 ~] # systemctl enable httpd # using services

Enable the system to read the contents of the rhel-server-7.1-x86_64-dvd.iso

Vim / etc/fstab

/ mnt/rhel-server-7.1-x86_64-dvd.iso / var/www/html/rhel7.1 iso9660 ro,relatime 0 0

Backup detection of mount parameters of image files on point type

Mount-a # # refresh

# access to devices in linux #

1. Identification of equipment

/ dev/sda # the first serial hard disk in the system

/ dev/hda # the first fast parallel port hard disk in the system

/ dev/hdb # the second fastest parallel port hard disk in the system

/ dev/cdro # system optical drive

/ dev/mapper/ xxx### virtual appliance

two。 Use of equipment

Mount device mount point # mount

Mount / dev/sda1/mnt # # Mount the first partition of the first fast hard disk in the system to / mnt

Umount backup | Mount point # Uninstall the device

Blkid # displays id information for all available devices

Df-h (n of 2)-H (n of 10) # View mount information

Du-h (display unit)-s (only count the directory itself) file | dir # Statistics file size

3. When the following problems occur when the device is uninstalled

[root@foundation0 ~] # umount / mnt/

Umount: / mnt: target is busy.

(In some cases useful info about processes that use

The device is found by lsof (8) or fuser (1))

Use

Fuser device | Mount point

Lsof device | Mount point

To find the process that occupies the device

4. How to find files in the system

Find command

Find path condition value

Find / mnt-name file

Find / mnt-name "file*"

Find / etc-name "* .conf"

-user## user

-group## group

Condition 1, muro, condition 2, condition # or

-type## type

-mmin+ |-number # # time

Dd if=/dev/zero of=/mnt/file bs=1024 count=10

Dd## data interception

If## data template

Of## data storage file

Fast size of bs## data

Fast number of count## data

-- size digits |-digits | + digits # find files of suitable size

-- rrr when perm444### files are fully required

-- every bit of the perm-444### file must contain r permissions

-- any perm/444### file contains r permissions

-maxdepth digit # the deepest directory layer

-mindepth digit # minimum directory layer

-exec command {}\; # deal with the found results accordingly

# locate#

Locate + condition # # find the qualified text in the database

Updatedb## updates the database

5. Link

# hard links #

A hard link is a copy of the file, in order to save the device node number

Ln file link

# soft links #

A shortcut to a file when soft link, in order to save the fast storage of the device.

Ln-s file link

Ls-I # # View a file node number

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

Network Security

Wechat

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

12
Report