在Ubuntu下安裝exe軟件要wine,而安裝rpm軟件要alien。
1、安裝alien命令行應用工具。 zhancang@ubuntu:~$ sudo apt-get install alien Password: 正在讀取軟件包列表... 完成 正在分析軟件包的依賴關系樹 讀取狀態信息... 完成 將會安裝下列額外的軟件包: debhelper html2text intltool-debian libbeecrypt6 librpm4 po-debconf rpm 建議安裝的軟件包: lsb-rpm lintian dh-make 推薦安裝的軟件包: libmail-sendmail-perl libcompress-zlib-perl 下列【新】軟件包將被安裝: alien debhelper html2text intltool-debian libbeecrypt6 librpm4 po-debconf rpm 共升級了 0 個軟件包,新安裝了 8 個軟件包,要卸載 0 個軟件包,有 24 個軟件未被升級。 需要下載 2557kB 的軟件包。 解壓縮后會消耗掉 8274kB 的額外空間。 您希望繼續執行嗎?[Y/n]y 【警告】:下列的軟件包不能通過驗證! html2text intltool-debian po-debconf debhelper libbeecrypt6 librpm4 rpm alien 不經驗證就安裝這些軟件包么?[y/N] y 獲取:1 http://debian.ustc.edu.cn feisty/main html2text 1.3.2a-3 [95.5kB] 獲取:2 http://debian.ustc.edu.cn feisty/main intltool-debian 0.35.0+20060710.1 [31.6kB] 獲取:3 http://debian.ustc.edu.cn feisty/main po-debconf 1.0.8 [111kB] 獲取:4 http://debian.ustc.edu.cn feisty/main debhelper 5.0.42ubuntu1 [514kB] 獲取:5 http://debian.ustc.edu.cn feisty/main libbeecrypt6 4.1.2-6build1 [108kB] 獲取:6 http://debian.ustc.edu.cn feisty/main librpm4 4.4.1-14build1 [990kB] 獲取:7 http://debian.ustc.edu.cn feisty/main rpm 4.4.1-14build1 [603kB] 獲取:8 http://debian.ustc.edu.cn feisty/main alien 8.65 [104kB] 下載 2557kB,耗時 3s (844kB/s) 選中了曾被取消選擇的軟件包 html2text。 (正在讀取數據庫 ... 系統當前總共安裝有 127050 個文件和目錄。) 正在解壓縮 html2text (從 .../html2text_1.3.2a-3_i386.deb) ... 選中了曾被取消選擇的軟件包 intltool-debian。 正在解壓縮 intltool-debian (從 .../intltool-debian_0.35.0+20060710.1_all.deb) ... 選中了曾被取消選擇的軟件包 po-debconf。 正在解壓縮 po-debconf (從 .../po-debconf_1.0.8_all.deb) ... 選中了曾被取消選擇的軟件包 debhelper。 正在解壓縮 debhelper (從 .../debhelper_5.0.42ubuntu1_all.deb) ... 選中了曾被取消選擇的軟件包 libbeecrypt6。 正在解壓縮 libbeecrypt6 (從 .../libbeecrypt6_4.1.2-6build1_i386.deb) ... 選中了曾被取消選擇的軟件包 librpm4。 正在解壓縮 librpm4 (從 .../librpm4_4.4.1-14build1_i386.deb) ... 選中了曾被取消選擇的軟件包 rpm。 正在解壓縮 rpm (從 .../rpm_4.4.1-14build1_i386.deb) ... 選中了曾被取消選擇的軟件包 alien。 正在解壓縮 alien (從 .../archives/alien_8.65_all.deb) ... 正在設置 html2text (1.3.2a-3) ... 正在設置 intltool-debian (0.35.0+20060710.1) ... 正在設置 po-debconf (1.0.8) ... 正在設置 debhelper (5.0.42ubuntu1) ... 正在設置 libbeecrypt6 (4.1.2-6build1) ... 正在設置 librpm4 (4.4.1-14build1) ... 正在設置 rpm (4.4.1-14build1) ... 正在設置 alien (8.65) ... zhancang@ubuntu:~$ 2、aline的使用。 zhancang@ubuntu:~$ alien --help Usage: alien [options] file [...] file [...] Package file or files to convert. -d, --to-deb Generate a Debian deb package (default). Enables these options: --patch=<patch> Specify patch file to use instead of automatically looking for patch in /var/lib/alien. --nopatch Do not use patches. --anypatch Use even old version os patches. -s, --single Like --generate, but do not create .orig directory. --fixperms Munge/fix permissions and owners. --test Test generated packages with lintian. -r, --to-rpm Generate a Red Hat rpm package. --to-slp Generate a Stampede slp package. -l, --to-lsb Generate a LSB package. -t, --to-tgz Generate a Slackware tgz package. Enables these options: --description=<desc> Specify package description. --version=<version> Specify package version. -p, --to-pkg Generate a Solaris pkg package. -i, --install Install generated package. -g, --generate Generate build tree, but do not build package. -c, --scripts Include scripts in package. -v, --verbose Display each command alien runs. --veryverbose Be verbose, and also display output of run commands. -k, --keep-version Do not change version of generated package. --bump=number Increment package version by this number. -h, --help Display this help message. -V, --version Display alien's version number. zhancang@ubuntu:~$ 注意(在網上看到的意見): Alien仍然是一個試驗性的程序,有很多bug和限制,如果要損系統卸載其他包,則不要使用它的alien。 不要推薦新手使用alien,這個東西會把你的依賴搞的一塌糊塗的。 |