[Shell] linux. bin installation files are commonly used for installation in linux, such as tar, zip, gz, rpm, deb, and bin. We can simply divide it into three types: 1. package or compress the files tar, zip, and gz. generally, after decompression, we can compile and install the files. 2. corresponding deb and rpm tools are available... [shell] linux. bin installation files are commonly used for installation in linux, such as tar, zip, gz, rpm, deb, and bin. We can simply divide it into three categories: 1. package or compress files, such as tar, zip, and gz. generally, after decompression, we can compile and install the files. 2. corresponding deb and rpm tools are available, for example, apt in ubuntu, yum3 in redhat, and yum3 in the bin class are actually packaging sh, zip, or rpm as bin 2 ,. bin installation file creation 1. package Source Code 1
Tar-zcvf google-perftools-1.7.tar.gz google-perftools-1.72. write the installation script 01 #! /Bin/bash02 # Filename: install. sh03 04 MYTMP = "$ (PATH =/sbin:/usr/sbin:/bin:/usr/bin mktemp-d)" 05sed-n-e '1, /^ exit 0 $ /! P' $0> "$ {MYTMP}/google-perftools-* .tar.gz" 2>/dev/null06cd $ MYTMP | die "Couldn't change to temporary directory" 07 08tar zxvf google-perftools-* .tar.gz 09cd google-perftools-*/10. /configure11make & make install12 13 echo '/usr/local/lib'>/etc/ld. so. conf14ldconfig15 16rm-rf $ MYTMP17 18 exit 0
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