yum install dos2unix 报错:
[root@master redis-2.8.3]# yum install dos2unix
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* epel: mirror.lzu.edu.cn
* livna: ftp-stud.fht-esslingen.de
No package dos2unix available.
Error: Nothing to do
解决方法:
下载“popt-1.16.tar.gz”,http://www.linuxfromscratch.org/blfs/view/svn/general/popt.html
tar -xzvf popt-1.16.tar.gz
cd popt-1.16
./configure
make
make install
测试:
[root@master redis-2.8.3]# unix2dos 1.txt
unix2dos: converting file 1.txt to DOS format ...
这样dos2unix就安装成功了!!!