Configure the yum repository and rpm package, and the yum repository rpm

Source: Internet
Author: User

Configure the yum repository and rpm package, and the yum repository rpm

Job 1:

1) Add a 15 gb scsi hard disk before enabling Linux.

 

2) enable the system, right-click the desktop, and open the terminal.

 

3) It is a newly added hard disk partition. The size of a primary partition is 5 GB, and the remaining space is extended. One logical partition is divided on the extended partition, And the size is 5 GB.

 

 

 

4) format the primary partition to the ext3 system.

 

 

 

 

 

 

5) set logical partitions as swap partitions

 

 

 

6) Enable swap partition in the previous step

 

 

 

7) view the status of the SWAp Partition

 

Job 2: free command to view memory

 

Functions of sorting buffer and cache

Buffer and cache are the cache of registers.

Calculate the actual memory usage

Buffer + cached + used

Job 3: dd command to test hard disk speed

 

 

 

Job 4: Find a process named init and forcibly kill it

 

Job 5: rpm command

1) mount the CD file to the/media Directory

 

2) Go to the Packages directory under the/media directory.

 

 

3) view all rpm packages installed in the system

 

4) check whether the dhcp software package is installed.

 

5) install the dhcp Software Package

 

 

 

6) view dhcp package information

 

7) view all files contained in the dhcp Software Package

 

8) check which software package generates the/bin/ls file.

 

9) uninstall the dhcp Software Package

 

Job 6: yum command

1) custom yum Repository: createrepo

 

2) custom repo File

 

 

 

 

3) use the yum command to install the httpd package

4) uninstall the httpd software package: yum-y remove software name

 

 

 

5) Use yum to install the component 'KDE desktop ': yum-y groupinstall component name

 

 

 

6) Use yum to delete the component 'KDE desktop ': yum-y groupremove component name

 

7) master to clear the yum cache: yum clean all

 

8) Use yum search software package: yum search software package name

 

 

Job 6: Install python in source code

1. Unzip all the source code files of the Python-3.6.0.tgz to the/root/Desktop/Python-3.6.0 directory.

 

2. You can find the configure file in the Python-3.6.0 directory for vim editing and edit the path corresponding to the equal sign following the prefix field.

 

 

3. use. /configure command to check the dependency between the software, then use the make command to compile the Python-3.6.0 source code, and then use make install to install. use Make and make install together, make & make install

 

 

 

 

Make & make install

 

After using the vim/etc/profile command, add two lines at the end of the file:

PATH =/usr/local/bin/: $ PATH

Export PATH

 

 

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.