Linux File Upload & Software Installation (RPM)

Source: Internet
Author: User
Tags ftp protocol

File upload and download (linux-linux)

Example 1: Copying files from a distance to a local directory
Command:
SCP [Email protected]:/opt/soft/nginx-0.5.38.tar.gz/opt/soft/

Example 2: Copying from a distance to a local
Command:
scp-r [Email protected]:/opt/soft/mongodb/opt/soft/

Example 3: Uploading a local file to a remote machine specified directory
Command:
scp/opt/soft/nginx-0.5.38.tar.gz [Email protected]:/opt/soft/scptest

Example 4: Uploading a local directory to a remote machine-specified directory
Command:
Scp-r/opt/soft/mongodb [Email protected]:/opt/soft/scptest

SOURCE Installation
1./configure Related library literati pieces and configuration parameters and generate make file
2 make compile the source code to generate the executable file
3 make install installs the resulting executable file to the current computer


RPM Installation

RPM Software Common Command specification
linuxcast-1.2.0-30.el6.i686.rpm

RPM Base Command
Installation software: Rpm-i software.rpm
Uninstall software: RPM-E software
Upgrade form install: Rpm-u software-new.rpm

RPM supports installation of software via the HTTP,FTP protocol
RPM-LVH http://www.linuxcast.net/software.rpm

The following parameters can be added
-V Display Related information
-H Show progress bar

Usually add parameters
EG:RPM-IVH software.rpm

RPM Query

RPM-QA List of installed RPM software
RPM-QF filename Query destination file belongs to that RPM package
Rpm-qi PackageName query specifies information for installed RPM software
RPM-QL PackageName query specifies that the included files are installed
RPM-QIP software.rpm query For information that does not have an RPM file installed
RPM-QLP software.rpm Query does not install RPM-Included files


RPM Verification

Import Key
RPM--import rpm-gpg-key-centos-6

Verify
Rpm-k software.rpm

Verify that the software is installed
Rpm-v Software

--Network part
Summary:
---Modify the IP address---
Immediate effect:
# ifconfig eth0 192.168.1.155 netmask 255.255.255.0
Restart takes effect:
Modify/etc/sysconfig/network-scripts/ifcfg-eth0
---Modify the default gateway---
Immediate effect:
# route add default GW 192.168.1.1
Restart takes effect:
Modify/etc/sysconfig/network-scripts/ifcfg-eth0
---modify DNS---
Modify/etc/resolv.conf
Immediate effect after modification, restart is also valid
---Modify the host name---
Immediate effect:
# hostname Test1
Restart takes effect:
Modify/etc/sysconfig/network

Linux File Upload & Software Installation (RPM)

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.