且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在EC2实例上安装xclip?

更新时间:2022-11-07 13:38:59

我今天需要一个大于ssh-key的文件,而cat还不够.您需要在EC2中启用EPEL仓库才能获取xclip:

I needed this today for a file larger than a ssh-key, and cat was not enough. You need to enable the EPEL repo in EC2 in order to get xclip:

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -ivh epel-release-latest-7.noarch.rpm
sudo yum-config-manager --enable epel
sudo yum install xclip -y