sudo bash -c 'cat << EOF > /etc/yum.repos.d/some-name.repo line1 line2 line3 EOF' 转载于:https://www.cnblogs.com/shansongxian/p/10510301.html