Linux Program Management

Source: Internet
Author: User

1. Use the Mount command to see if/dev/cdrom (SR0) is included in the device Mount status.

[email protected] ~]# mount |grep "CDROM"

/dev/sr0 on/media/cdrom type iso9660 (RO)// If the bank is shown to prove that there is a disc, otherwise

Proof that there is no CD mount.

2. If there is a mount, uninstall it, create the/media/cdrom directory, and mount the disc to the/media/cdrom directory.

[Email protected] ~]# Umount/dev/cdrom

Umount:/dev/cdrom:not Mounted

[Email protected] ~]# mkdir-p/media/cdrom

[Email protected] ~]# mount/dev/cdrom/media/cdrom/

Mount:block Device/dev/sr0 is write-protected, mounting read-only

[Email protected] ~]# cd/media/cdrom/packages/

[[email protected] packages]# ls

.........

3. Query whether the Lrzsz package is installed if it is not installed (package on CD packages)

[Email protected] packages]# rpm-q Lrzsz

Package Lrzsz are not installed// indicates that the RP has not been installed,

===================== Theoretical part ========================

====================== operating Section ==============================

[Email protected] packages]# RPM-IVH lrzsz-0.12.20-27.1.el6.x86_64.rpm

Warning:lrzsz-0.12.20-27.1.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID C105b9de:nokey

Preparing ... ########################################### [100%]

1:lrzsz ########################################### [100%]

[Email protected] packages]# rpm-q Lrzsz

Lrzsz-0.12.20-27.1.el6.x86_64

[Email protected] packages]#

4. upload the package in the folder via tools such as xftp

5. Install realplayer11gold.rpm to see if the video player is installed successfully

[Email protected] ~]# ls-l realplayer11gold.rpm

-rw-r--r--. 1 root root 8631282 1 month 14:28 realplayer11gold.rpm

[Email protected] ~]# RPM-IVH realplayer11gold.rpm

Preparing ... ########################################### [100%]

1:realplayer ########################################### [100%]

[Email protected] ~]# rpm-q RealPlayer

realplayer-11.0.0.4028-20080225.i586

[Email protected] ~]#

================ about the dependencies of the package ======================

7. install httpd-2.2.17.tar.gz software by source code to ensure the Web service is working properly

Tarball Sealing Package

. tar.gz and. tar.bz2 format mostly

Software Material reference: Http://sourceforge.net

Integrity Check

md5sum Validation Tools

N calculates the MD5 checksum, and compares it with the value provided by the official to determine whether it is consistent

[Email protected] ~]# md5sum httpd-2.2.17.tar.gz

66D8E107F85ACC039FD5E624E85728A9 httpd-2.2.17.tar.gz

--------------------------------------------------------------------------------------------

[Email protected] ~]# rpm-q httpd

Httpd-2.2.15-29.el6.centos.x86_64

[Email protected] ~]# rpm-e httpd--nodeps

[Email protected] ~]# rpm-q httpd

Package httpd are not installed

// uninstalling local RPM mode of installation of the httpd Server

========================================

[Email protected] ~]# rpm-q gcc gcc-c++ make

Gcc-4.4.7-4.el6.x86_64

Gcc-c++-4.4.7-4.el6.x86_64

Make-3.81-20.el6.x86_64

================= Theoretical part ==================

Step 1 : Tar Unpacking

[Email protected] ~]# tar XF httpd-2.2.17.tar.gz-c/usr/src/

[Email protected] ~]# cd/usr/src/httpd-2.2.17/

[[email protected] httpd-2.2.17]# ls

About_apache buildconf emacs-style LAYOUT NOTICE Roadmap

ACINCLUDE.M4 changes HTTPD.DSP libhttpd.dsp nwgnumakefile Server

APACHE.DSW config.layout httpd.spec LICENSE os srclib

Build configure include makefile.in README support

BUILDALL.DSP configure.in INSTALL makefile.win readme.platforms test

BUILDBIN.DSP docs INSTALLBIN.DSP Modules Readme-win32.txt VERSIONING

----------------------------------------------------------------------------------------

Step 2 :./configure Configuration

[Email protected] httpd-2.2.17]#/configure--prefix=/usr/local/httpd

Attention:

--prefix: Specify the installation path

-------------------------------------------------------

Step 3 : Compile, compile the source code into a binary executable program that can be recognized by the system

[[email protected] httpd-2.2.17]# make

---------------------------------------------------------------

Step 4. installation, Create the installation directory and generate Binary executable program is copied into the system.

[[email protected] httpd-2.2.17]# make install

[Email protected] httpd-2.2.17]# ls/usr/local/httpd/

Bin build Cgi-bin conf error htdocs icons include lib logs man manual modules

----------------------------------

Step 5. Test:

[[email protected] httpd-2.2.17]#/usr/local/httpd/bin/apachectl start

// start httpd Service

8. Find out which package generated the Chkconfig command

[email protected] ~]# which chkconfig

/sbin/chkconfig

[Email protected] ~]# Rpm-qf/sbin/chkconfig

Chkconfig-1.3.49.3-2.el6_4.1.x86_64

9. Import Package digital public key via CD

[Email protected] ~]# ls/media/cdrom/

Centos_buildtag release-notes-en-us.html

EFI Repodata

EULA rpm-gpg-key-centos-6

GPL rpm-gpg-key-centos-debug-6

Images rpm-gpg-key-centos-security-6

Isolinux rpm-gpg-key-centos-testing-6

Packages TRANS. TBL

[Email protected] ~]# rpm--import/media/cdrom/*k*

// Import package digital public key via CD

uninstalling the disc

[Email protected] ~]# Umount/dev/cdrom

[email protected] ~]# mount |grep "CDROM"

Linux Program Management

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.