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.
Related
I use conda becouse it allow me to experminent with diferent version, but some time there are package only in apt or pip. so if i use apt from inside the env will it effect others or modifie the base env.
let sey install h5py for Python:
conda activate -n test sudo apt-get install libhdf5-dev sudo pip install h5py
I am trying to understand. becouse if i try to install from inside the env and it moidifie the other env, it will be a problem for me.
apt is an OS-level package manager for Debian and derivatives (Ubuntu). It installs packages globally, into the OS. It knows nothing about Python virtual environments.
If you want to install OS packages temporary, do experiments and then cleanup — use deeper virtualisation. Use virtual machines (qemu + Debian-in-Debian, VirtualBox + Ubuntu inside it) or containers (Docker, LXC, LXD, SystemD containers, whatever).
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.
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 used sudo pip install ansible --upgrade to upgrade Ansible on CentOS 6. When I typed ansible --version, it gave me the updated version number. However all the Ansible core modules did not get updated. I had to manually update the core modules one by one from the source.
Does anyone know how to do Ansible version update with all the core modules being updated as well?
I guess it has something todo with Ansible recently (I think around 1.7.x) being split up from one github repo into 3 separate github repos. Ansible core and Ansible modules not in the same repository any longer.
How did you install Ansible in the first place? Did you use pip install <ansible-repo>? Then that might be the problem. The docs say to use easy_install with pip. If you did that, maybe still just pip uninstall it and re-install.
Also, there is a rpm to use with yum on CentOS. (which I use and did not have problems updating)
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