deb sudo dpkg -i *.deb #*代表安装包名字 tar.gz 先解压,进入文件夹 mkdir build cd build cmake .. make sudo make install apt-get sudo apt-get install * .bin chmod +x *.bin ./*.bin rpm 先安装rpm的安装器alien sudo apt-get install alien alien -i *.rpm