[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 production 1, package the source code 1 <strong> tar-zcvf google-perftools-1.7.tar.gz google-perftools-1.7 </strong> 2, 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