This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Amazon web services and ubuntu 10.04 ec2 instance
I am selected an ubuntu ec2 instance and I am trying to install ec2-tools, but using sudo apt-get install ec2-api-tools i am encountering an error which says no package found. How do I install ec2-api-tools
You need to add the awstools repository and update apt.
sudo apt-add-repository ppa:awstools-dev/awstools
sudo apt-get update
sudo apt-get install ec2-api-tools
Another option is to download ec2-api-tools from amazon website and configure them for your system. For path configuration see this link.
Regards,
Sanket Dangi
Related
I have created an instance in amazon Linux. and I want to install python-dev. for this I was using
sudo apt-get install python-dev or any other package. but it throws me the command not found error.
instead of apt-get, I was used yum command but that is also not working.
I have created a flask application and I am using FileZilla and putty. I am running application (python files) using putty. I have install pycrypto but then also it is showing no module name. so somewhere I learned that I have install package python-dev. for that purpose I was using apt-get command.
Amazon linux is based on redhat distribution. So you should yum install [package name] instead of apt-get'. the commandapt-getcommand is used indebian` based distribution.
You can use yum search [package name] to search for packages by name.
hope this helps.
I'm using Laravel homestead for dev, but my QA server is on Amazon Linux. Which is CentOS-7 based.
I have installed Supervisor on my Dev the way it is said on Laravel docs
sudo apt-get install supervisor
And now I'm stack.
It does not say how to uninstall it, and it does not say how to install it on Amazon Linux.
How to Uninstall Laravel Supervisor from Homestead?
And how to install/uninstall it on Amazon Linux?
If you installed it with apt-get then you should be able to remove it with the same package manager.
https://askubuntu.com/a/1144
E.g. with one of the following commands:
sudo apt-get remove supervisor # remove the package
sudo apt-get purge supervisor # remove the package and all configs
As for CentOS, try it with yum
yum install supervisor
yum remove supervisor
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-yum-useful-commands.html
Similar question:
https://stackoverflow.com/a/47322239/3095084
How do I install moreutils on the default image Amazon EC2 instance? The instances are built off of CentOS but presumably have their own packages repo since
sudo yum install moreutils
fails with
No package moreutils available.
What is the yum repo I need to install moreutils?
The epel repo is on the default Amazon server but in not enabled by default. You can use it as follows:
sudo yum --enablerepo epel install moreutils
Note that epel has a very old version of moreutils (0.40 when 0.61 is out), which does not include chronic.
For update amazon linux, you can run following commands
sudo amazon-linux-extras install epel
sudo yum install moreutils
The EPEL repository has it, and other things. It works with Amazon Linux as well as CentOS, Fedora etc. (see http://fedoraproject.org/wiki/EPEL). To install the config that enables that repo, yum install epel-release.
I have an AWS EC2 instance and wants to install inotify-tools. I've added the repository by executing the command: rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm then execute yum install inotify-tools but getting No package inotify-tools available.
Please help
I bumped into this issue as well. The solution below is a bit easier than grabbing an RPM or the source and compiling.
The Amazon Linux AMI comes with the EPEL repository source, but it's disabled. So you need to enable it.
Original Amazon Linux (1) AMI:
sudo yum-config-manager --enable epel
Amazon Linux 2 AMI:
sudo amazon-linux-extras install epel -y
Then run a regular yum update and install the toolset:
sudo yum update
sudo yum install inotify-tools
How do I enable the EPEL repository for my Amazon EC2 instance running CentOS, RHEL, or Amazon Linux?
Install and enable the EPEL rpm package on RHEL 7 and Amazon Linux 2
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo amazon-linux-extras install epel
sudo yum install inotify-tools
For me, none of the above answers worked. I had to install epel-release and then install inotify-tools
Can someone tell me how to install pine or alpine (the text-based e-mail client) on an Amazon EC2 linux instance running Amazon Linux?
yum install pine
and
yum install alpine
did not work.
There is some support for pine and derivatives. You can install alpine on Amazon, with:
sudo yum install alpine --enablerepo=epel
if it doesn't show up with a yum search, its unlikely that the packages are in the repository. You can try adding another repository that do have the packages. Centos/Redhat repositories work for the most part, but you might run into issues with dependencies.