Sei sulla pagina 1di 2

CHEAT SHEET

RHEL

Red Hat Enterprise Linux 8 Beta

We are delighted to introduce you to Red Hat Enterprise Linux 8 Beta. If you’re familiar with previous versions of Red Hat Enterprise Linux, you’ll find RHEL 8 Beta
more intuitive to pick up and use. However, there are a few new features and changes that you’ll want to be aware of, so we hope this cheat sheet will help you
quickly explore and begin your RHEL 8 Beta application development.

SIMPLIFIED SOFTWARE PACKAGING AND INSTALLATION WORKNG WITH CONTAINERS

Installing and using RHEL 8 Beta is much easier than previous releases. To enable container management without the need for daemons, Red
Previously, there were server, workstation, and desktop variants, but RHEL Hat has introduced a set of tools for your Linux container application
8 Beta has only one distribution (ISO file) for each architecture. The RHEL 8 development:
Beta has also been simplified with fewer repos - they are:
Buildah allows you to build a container without any daemon or
BaseOS Beta - primarily core operating system packages with docker.
support for the lifetime of the OS
Podman allows you to manage containers without the
AppStream Beta - user-space applications and components,
daemon dependency it’s also docker cli compatible.
including numerous Application Streams that will be updated on a
more frequent cadence
You can obtain a number of RHEL 8 Beta container images from the Red
Linux Builder Beta - a collection of unsupported developer Hat container catalog.
tools

Supplementary - 3rd party support only

Compilers, runtimes, web/database servers, and development tools will


generally be delivered as Application Streams from the AppStream repo.
See below for more info.

BASIC RED HAT ENTERPRISE LINUX COMMANDS # subscription-manager repos --list

list all available repositories


The most basic tasks that you might need after the operating system has
been installed include: $ yum repolist

list all currently enabled repositories


# yum search string
# subscription-manager repos --enable repository
search for packages matching a specific string
enable a repository
# yum install package_name
# subscription-manager repos —disable repository
install a package
disable a repository
# yum update package_name

update a package
INTRODUCING APPLICATION STREAMS
# yum remove package_name

uninstall a package and any packages that depend on it RHEL 8 Beta introduces Application Streams (or simply Stream ) where we
deliver user space packages (e.g. compilers, scripting languages, databases,
$ yum list all etc.) on a cadence that makes sense for each package.

list information on all installed and available packages In RHEL 8 Beta, Applications Streams are packaged as Modules (also new in
RHEL 8 Beta - see Modules sections below).
$ yum list installed

list all installed packages For even more information about Application Stream and modules, see
Using Application Stream in the official Red Hat documentation.
CHEAT SHEET

FINDING AND EXPLORING MODULES MariaDB 10.3 $ sudo yum install mariadb
Maven 3.5 $ sudo yum install maven
The following are common module commands. MySQL 8 $ sudo yum install mysql
Nginx 1.14 $ sudo yum install nginx
$ yum module list
Node.js 10 $ sudo yum install nodejs
list all modules
Node.js 8 $ sudo yum module install nodejs:8
$ yum module list installed OpenJDK 11 $ sudo yum install java-11-openjdk-
list installed modules devel
OpenJDK 8 $ sudo yum install java-1.8.0-
$ yum module provides package
openjdk-devel
find which module provides a package PCP 4.1 $ sudo yum install pcp-zeroconf
Perl 5.26 $ sudo yum install perl
$ yum module info module
PHP 7.2 $ sudo yum install php
examine details of a module
PostgreSQL 10.5 $ sudo yum install postgresql
$ yum module info --profile module:stream PostgreSQL 9.6 $ sudo yum module install

list packages installed by profiles of a module postgresql:9.6


Python 2.7 $ sudo yum install python2 or yum
$ yum module list module module install python27
display the current status of a module Python 3.6 $ sudo yum install python3 or yum
module install python36
Redis 4 $ sudo yum install redis
WORKING WITH MODULES Ruby 2.5 $ sudo yum install ruby
Rust 1.26 $ sudo yum install rust-toolset
The following commands must run with administrator privileges. Note also Scala 2.10 $ sudo yum install scala
that some operations with modules require changes to many packages.
Subversion 1.1 $ sudo yum install subversion

# yum module enable module:stream Swig 3 $ sudo yum install swig


Systemtap 4.0 $ sudo yum install systemtap
enable a specific stream without installing packages
Valgrind 3.14 $ sudo yum install valgrind
# yum module install module:stream/profile
Varnish 6 $ sudo yum install varnish
install a specific stream

# yum module remove module && yum module disable module MORE INFORMATION
disable a module stream and remove all packages provided by it

For more information about RHEL 8 Beta, visit the Red Hat Developer
website.
INSTALLING SPECIFIC APPLICATION STREAMS
Note: if `sudo` isn’t enabled for your user ID, see How to enable sudo on
Red Hat Enterprise Linux. During system installation, checking the box
The following table lists the most interesting Application Streams available Make this user administrator enables `sudo` for your user ID.
in RHEL 8 Beta.

.NET Core 2.1 $ sudo yum install dotnet


Authors: Mike Guerette, Vladimir Slavik
Ant 1.1 $ sudo yum install ant
Buildah & Podman $ sudo yum install buildah podman
Clang/LLVM 6.0 $ sudo yum install llvm-toolset

GCC 8.2 plus tools $ sudo yum group install


"Development Tools"

GO 1.10 $ sudo yum install go-toolset


HTTPD 2.4 $ sudo yum install httpd