I'm using Amazon Corretto 8u262 version in linux 64 bit. The team is releasing new build frequently with bug fixes and additional new features. Whenever new update released, manually downloaded new build and then uninstall the old JDK and install the new downloaded version. Whether there is any way or command in linux to update Corretto 8 to latest version without downloading manually.
If you use a software package manager (yum, zypper, apk, etc) you can setup Corretto to auto-update when your package manager updates software. Instructions on how to set this up are available here: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/generic-linux-install.html
Yes there is. Depending on what Linux you are using, you may use apt or yum to install new versions.
The instructions for 8 are here: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/generic-linux-install.html
The instructions for 11 are here: https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/generic-linux-install.html
In detail
Deb based (e.g. Ubuntu)
To use the Corretto Apt repositories on Debian-based systems, such as Ubuntu, import the Corretto public key and then add the repository to the system list by using the following commands:
wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add -
sudo add-apt-repository 'deb https://apt.corretto.aws stable main'
After the repository is added, you can install Corretto 8 by running this command:
sudo apt-get update; sudo apt-get install -y java-1.8.0-amazon-corretto-jdk
CentOs, RedHat, Amazon Linux, etc
To use Corretto RPM repositories with the yum package manager (such as Amazon Linux AMI), import the Corretto public key and then add the repository to the system list. For most systems, you must run the following commands:
sudo rpm --import https://yum.corretto.aws/corretto.key
sudo curl -L -o /etc/yum.repos.d/corretto.repo
https://yum.corretto.aws/corretto.repo
After the repository is added, you can install Corretto 8 by running this command:
sudo yum install -y java-1.8.0-amazon-corretto-devel
Related
I created a Rust application, which I would like to distribute as an installable package.
So, I followed this guide
https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/
Created a deb package,
Created an apt repo
& Signed it !
My code repo is : https://github.com/Bhogayata-Keval/secure-apt-demo
However,
after I add my apt-repo to /etc/apt using
echo "deb [arch=amd64] http://127.0.0.1:8000/apt-repo stable main" | sudo tee /etc/apt/sources.list.d/example.list
(I started a local server for testing, as suggested in the blog post)
& run sudo apt-get install xxxxxx
it says --- E: Unable to locate package xxxxxx
Check out OpenRepo: https://github.com/openkilt/openrepo
This is an open source package hosting server that can make packages available for both Debian (APT) and Red Hat (RPM) files.
Run sudo apt update
This updates the local list of packages apt can install, and should be executed after adding a repository or before running sudo apt upgrade
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.
Can someone tell me how to upgrade HAProxy from 1.5.4 version to the latest version?
I'm using a virtual machine CentOS 6.5.
Thanks a lot ;)
HAProxy up to 1.5.4 is available for Centos via the package repository, so to get a newer version you will have to compile from source.
To upgrade to the latest version, you could follow these instructions to make your own installable package.
In summary:
sudo yum install rpmdevtools pcre-devel
rpmdev-setuptree
sudo yum groupinstall 'Development Tools'
sudo yum install openssl-devel
wget http://www.haproxy.org/download/1.6/src/haproxy-1.6.9.tar.gz
mv haproxy-1.6.9.tar.gz ~/rpmbuild/SOURCES/
git clone git://github.com/bluerail/haproxy-centos.git
cp haproxy-centos/conf/* ~/rpmbuild/SOURCES/
cp haproxy-centos/spec/* ~/rpmbuild/SPECS/
cd ~/rpmbuild/
rpmbuild -ba SPECS/haproxy.spec
The RPM should be available in ~/rpmbuild/RPMS/x86_64. You can install it like:
sudo rpm -Uvh RPMS/x86_64/haproxy-1.6-9.x86_64.rpm
Try the following yum command:
yum update haproxy
According to a quick repo search, this should update to HAProxy 1.5.4. Prove the version change with:
haproxy -v
On a clean Debian 8 installation i had to install some gstreamer-plugins. While most of them were already installed or were easily installable via apt-get, gstreamer0.10-ffmpeg was not installable:
sudo apt-get install gstreamer0.10-ffmpeg
threw out following warnings:
Package gstreamer0.10-ffmpeg is not available, but is referred to by
another package. This may mean that the package is missing, has been
obsoleted, or is only available from another source
E: Package
'gstreamer0.10-ffmpeg' has no installation candidate
How can i install the package anyhow?
There is no package, so you cannot install it.
Debian has switched to libav in favour of ffmpeg, and the gstreamer0.10-ffmpeg package currently cannot be be build using libav. hence it is not jessie.
You might have luck (or not) using one of the gstreamer0.10-ffmpeg packages on some ubuntu PPAs (use them at your own risk).
Btw, gstreamer0.10 has reached it's end-of-life a while ago. Debian/stretch (the next Debian release) will have gstreamer0.10 removed.
Update: recently (2015/06) Debian has decided to switch back from libav to ffmpeg. However, I don't think that this will make gstreamer0.10-ffmpeg reappear.
I've been working with Qt & Qt Multimedia on Debian Jessie and I realized Qt Multimedia uses the GStreamer multimedia framework as the backend for audio and video playback on Linux.
The way of getting all the required packages which are not available in Debian Jessie was using the repo for the wheezy distribution.
Adding the next repository in /etc/apt/sources.list, the gstreamer0.10-ffmpeg pluging is available via apt-get.
deb http://ftp.uk.debian.org/debian/ wheezy main
deb-src http://ftp.uk.debian.org/debian/ wheezy main
A better solution is to install the Debian multimedia repository:
Add this line in /etc/apt/sources.list:
deb http://www.deb-multimedia.org jessie main non-free
Update apt:
sudo apt-get update
Then, you will need the key of this repo, that you can get with:
sudo apt-get install deb-multimedia-keyring
And now, again:
sudo apt-get update
After these steps above, you can safely execute:
sudo apt-get install gstreamer0.10-ffmpeg
I know it was possible usint a package manager since i did it once a time ago. But now if I try
sudo yum install byobu
it just fails ...
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
amzn-main
amzn-updates
Setting up Install Process
No package byobu available.
Error: Nothing to do
Not sure why, but the EPEL repo is installed, but disabled by default. You can enable it permanently by changing the setting "enabled=1" in the [epel] stanza of /etc/yum.repos.d/epel.repo
Or you can leave it disabled and still install byobu:
sudo yum install --enablerepo=epel byobu
You can have a look at what packages are available in the epel repo with:
sudo yum list --disablerepo=\* --enablerepo=epel
For Amazon Linux 2:
You would need to install the EPEL release package for EL7 based AMI and enable the EPEL repository.
You may execute below: ⤵︎
sudo amazon-linux-extras install epel # Install epel from Amazon's Linux Extras
sudo yum-config-manager --enable epel # Enable EPEL repo in case disabled
sudo yum install byobu -y # Install byobu
byobu -v # Verify Version
Here is the alternative source just in case Linux Extras don't work for you.
# (optional) Install EPEL repository from Fedora
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Reference: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
Tested On
Name: Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0323c3dd2da7fb37d (64-bit x86) / ami-0ce2e5b7d27317779 (64-bit Arm)
The error message indicates that the package byobu is not available in the amzn-main repository.
You can manually install it from another repository
cd ~
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/5/x86_64/byobu-3.4-2.el5.noarch.rpm
sudo yum install byobu-3.4-2.el5.noarch.rpm
Maybe someone needs a new link for
byobu
So you can install it by
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/7/x86_64/b/byobu-5.73-4.el7.noarch.rpm
sudo yum install byobu-5.73-4.el7.noarch.rpm