Which yum repositories for Oracle Linux 7 can I use to install Kubernetes? - yum

I've been able to successfully install Kubernetes in a CentOS 7 testing environment using the "virt7-testing" repo as described in the CentOS "Getting Started Guide" in the Kubernetes github repo. My production environment will be running on Oracle Linux 7, and so far enabling "virt7-testing" on OL7 hasn't been working.
Are there any other yum repositories out there that are compatible with OL7 and include Kubernetes?

It's not the best solution to pull outside of OEL, but I couldn't find an OEL repository with these packages, so I used this:
[]# cat /etc/yum.repos.d/virt7-common.repo
[virt7-common]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://mirror.centos.org/centos/7/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

A good start would be the rapidly updated fedora / epel kubernetes repositories.
Something like (untested)
yum --enablerepo=updates-testing install kubernetes kubernetes-devel flanneld docker
Should do it for you.

Related

How to install httpd on RedHat Server? What Yum repository?

I am pretty new with this kind of server so please excuse my ignorance.
I asked my company for a Linux Server for hosting a web application and they gave me this system:
Red Hat Enterprise Linux Server release 7.7 (Maipo)
so the first thing I did was trying to install Apache HTTP, which package is called httpd in yum repositories.
Following a tutorial I did:
sudo yum list httpd
Which started returning a series of time out messages coming from a mirror related to my company (Are they hosting rhel repositories? Is this a common practice?)
Anyway I started disabling this mirrors at which point the command
sudo yum list httpd
returned just:
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Repository rhel-7-server-rpms is listed more than once in the configuration
Error: No matching Packages to list
I tried adding back some repo without any basic knowledge of the technology so I'll just post the result of this command:
sudo yum repolist enabled
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Repository rhel-7-server-rpms is listed more than once in the configuration
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,457
rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Optional (RPMs) 19,380
vmware-tools VMware Tools 1
repolist: 32,838
What should I do? How do I know which repo to add and/or enable to install this common package?
httpd2.4 for RHEL is packaged as a Software Collection, so you have to enable some repos first. See these docs:
Release notes
Installation
Once you "scl enable" the proper repos, then you'll "yum install httpd24"
If you want a shortcut for setup, use step 1 only on this Python Hello World page, then yum install.

How to update s3fs from v1.74 to latest version in amazon linux 2 or centos?

I already installed s3fs-fuse v1.74 and my boss need me to update it to latest version, yet I'm a newbie here. I'm using Amazon Linux 2 instance in AWS, sometimes works with centos 7 code too. Could someone help me please?
EPEL hosts the latest versions of s3fs. You can install them on Amazon Linux via:
sudo amazon-linux-extras install epel
sudo yum install s3fs-fuse
and CentOS 7 and later via:
sudo yum install epel-release
sudo yum install s3fs-fuse
These instructions come from the s3fs README.

openshift origin ansible to install docker-engine rather than docker?

Is it possible that openshift origin 1.4 ansible to install docker-engine (latest version 1.13.0) rather than docker ?
By default, it always try to install docker not docker-engine.
No, the 1.4 release of OpenShift Ansible does not support installing Docker 1.13 at the moment. The documentation lists the supported Operating Systems and version of Docker, which, for Origin 1.4, is Docker 1.12.
The use of different versions is not supported and not tested.
As per docker versus docker-engine, there are technical differences in their contents, more information can be found at http://www.projectatomic.io/docs/docker_patches/. OpenShift Origin is tested to work with the docker package from Project Atomic.

yum install activemq activemq-client - no package activemq available

I am trying to install activemq and activemq-client on RHEL 6.6 with yum.
But after typing
yum install activemq activemq-client
the machine just saying
No package activemq available
No package activemq-client available
Nothing to do.
Is there a way to get yum working for this ?
Thanks for your help.
For a simple installation following the tutorial you have to enable different repos for yum, this can be done by
subscription-manager repos --enable=*repoid*
To get a list of Repo IDs, you can use:
subscription-manager repos --list
After this, everything works fine.

How can I build an RPM package in a Debian based system?

I'd like to build packages using a build system (i.e. jenkins, travis, etc) but all I have are Ubuntu 12.04 VMs.
I've found this [1] instructions but mach does not support CentOS 7.0.
[1] http://blog.burghardt.pl/2008/12/how-to-build-rpm-packages-in-centos-chroot-on-debian/
http://mojo.codehaus.org/rpm-maven-plugin/ <- rpm plugin for the maven build system
sudo apt-get install rpm # for Ubuntu
Check out the command that it installs called rpmbuild.
Found it! There is actually a tool called rinse: "Rinse is a simple tool which is designed to carry out the installation of a new RPM-based distribution".
rinse --distribution="centos-7" --directory="/tmp/centos-7"
http://collab-maint.alioth.debian.org/rinse/