Questo contenuto non è disponibile nella lingua selezionata.
2.2 Release Notes
Release Notes for Red Hat Software Collections 2.2
Abstract
Chapter 1. Red Hat Software Collections 2.2 Copia collegamentoCollegamento copiato negli appunti!
1.1. About Red Hat Software Collections Copia collegamentoCollegamento copiato negli appunti!
/opt/ directory and can be optionally enabled per application by the user using the supplied scl utility. The default versions of Perl or PostgreSQL, for example, remain those provided by the base Red Hat Enterprise Linux system.
1.2. Main Features Copia collegamentoCollegamento copiato negli appunti!
| Component | Software Collection | Description |
|---|---|---|
| Red Hat Developer Toolset 4.1 | devtoolset-4 | Red Hat Developer Toolset is designed for developers working on the Red Hat Enterprise Linux platform. It provides current versions of the GNU Compiler Collection, GNU Debugger, Eclipse development platform, and other development, debugging, and performance monitoring tools. For a complete list of components, see the Red Hat Developer Toolset Components table in the Red Hat Developer Toolset User Guide. |
| Perl 5.20.1 | rh-perl520 | A release of Perl, a high-level programming language that is commonly used for system administration utilities and web programming. The rh-perl520 Software Collection provides additional utilities, scripts, and database connectors for MySQL and PostgreSQL. Also, it includes the DateTime Perl module and the mod_perl Apache httpd module, which is supported only with the httpd24 Software Collection. |
| PHP 5.4.40 | php54 | A release of PHP with PEAR 1.9.4 and a number of additional extensions. PHP 5.4 provides a number of language and interface improvements. The memcache and Zend OPcache extensions are also included. |
| PHP 5.5.21 | php55 | A release of PHP with PEAR 1.9.4 and enhanced language features including better exception handling, generators, and Zend OPcache. The memcache and mongodb extensions are also included. |
| PHP 5.6.5 | rh-php56 | A release of PHP with PEAR 1.9.5 and enhanced language features including constant expressions, variadic functions, arguments unpacking, and the interactive debugger. The memcache, mongo, and XDebug extensions are also included. |
| Python 2.7.8 | python27 | A release of Python 2.7 with a number of additional utilities. This Python version provides various new features and enhancements, including a new ordered dictionary type, faster I/O operations, and improved forward compatibility with Python 3. The python27 Software Collections contains the Python 2.7.8 interpreter, a set of extension libraries useful for programming web applications and mod_wsgi (only supported with the httpd24 Software Collection), MySQL and PostgreSQL database connectors, and numpy and scipy. |
| Python 3.4.2 | rh-python34 | A release of Python 3 with a number of additional utilities. This Software Collection gives developers on Red Hat Enterprise Linux access to Python 3 and allows them to benefit from various advantages and new features of this version. The rh-python34 Software Collection contains Python 3.4.2 interpreter, a set of extension libraries useful for programming web applications and mod_wsgi (only supported with the httpd24 Software Collection), PostgreSQL database connector, and numpy and scipy. |
| Python 3.5.1[a] | rh-python35 | The rh-python35 Software Collection contains Python 3.5.1 interpreter, a set of extension libraries useful for programming web applications and mod_wsgi (only supported with the httpd24 Software Collection), PostgreSQL database connector, and numpy and scipy. |
| Ruby 2.2.2 | rh-ruby22 | A release of Ruby 2.2. This version provides substantial performance and reliability improvements, including incremental and symbol garbage collection and many others, while maintaining source level backward compatibility with Ruby 2.0.0 and Ruby 1.9.3. |
| Ruby 2.3.0[a] | rh-ruby23 | A release of Ruby 2.3. This version introduces a command-line option to freeze all string literals in the source files, a safe navigation operator, and multiple performance enhancements, while maintaining source level backward compatibility with Ruby 2.2.2, Ruby 2.0.0, and Ruby 1.9.3. |
| Ruby on Rails 4.1.5 | rh-ror41 | A release of Ruby on Rails 4.1, a web application development framework written in the Ruby language. This version provides a number of new features including Spring application preloader, config/secrets.yml, Action Pack variants, and Action Mailer previews. This Software Collection is supported together with the rh-ruby22 Collection. |
| Ruby on Rails 4.2.6[a] | rh-ror42 | A release of Ruby on Rails 4.2, the latest version of the web application framework written in the Ruby language. Highlights in this release include Active Job, asynchronous mails, Adequate Record, Web Console, and foreign key support. This Software Collection is supported together with the rh-ruby23 and rh-nodejs4 Collections. |
| MariaDB 10.0.25 | rh-mariadb100 | A release of MariaDB, an alternative to MySQL for users of Red Hat Enterprise Linux. For all practical purposes, MySQL is binary compatible with MariaDB and can be replaced with it without any data conversions. This version adds the PAM authentication plugin to MariaDB. |
| MariaDB 10.1.14 | rh-mariadb101 | A release of MariaDB, an alternative to MySQL for users of Red Hat Enterprise Linux. For all practical purposes, MySQL is binary compatible with MariaDB and can be replaced with it without any data conversions. This version adds the Galera Cluster support. |
| MongoDB 2.6.9 | rh-mongodb26 | A release of MongoDB, a cross-platform document-oriented database system classified as a NoSQL database. This Software Collection includes the mongo-java-driver package version 2.14.1. |
| MongoDB 3.2.6[a] | rh-mongodb32 | A release of MongoDB, a cross-platform document-oriented database system classified as a NoSQL database. This Software Collection includes the mongo-java-driver package version 3.2.1. |
| MongoDB 3.0.11 upgrade collection[a] | rh-mongodb30upg | A limited version of MongoDB 3.0 is available to provide an upgrade path from MongoDB 2.6 to MongoDB 3.2 for customers with existing MongoDB databases. |
| MySQL 5.6.30 | rh-mysql56 | A release of MySQL, which provides a number of new features and enhancements, including improved performance. |
| PostgreSQL 9.4.6 | rh-postgresql94 | A release of PostgreSQL, which provides a new data type to store JSON more efficiently and a new SQL command for changing configuration files, reduces lock strength for some commands, allows materialized views without blocking concurrent reads, supports logical decoding of WAL data to allow stream changes in a customizable format and enable background worker processes to be dynamically registered, started, and terminated. |
| PostgreSQL 9.5.2 | rh-postgresql95 | A release of PostgreSQL, which provides a number of enhancements, including row-level security control, introduces replication progress tracking, improves handling of large tables with high number of columns, and improves performance for sorting and multi-CPU machines. |
| Node.js 0.10 | nodejs010 | A release of Node.js with npm 1.4.28 and support for the SPDY protocol version 3.1. This Software Collection gives users of Red Hat Enterprise Linux access to this programming platform. |
| Node.js 4.4.2 | rh-nodejs4 | A release of Node.js with npm 2.15.1 and support for the SPDY protocol version 3.1. This Software Collection gives users of Red Hat Enterprise Linux access to this programming platform. |
| rh-nginx 1.8.0 | rh-nginx18 | A release of nginx, a web and proxy server with a focus on high concurrency, performance and low memory usage. This version introduces a number of new features, including back-end SSL certificate verification, logging to syslog, thread pools support for offloading I/O requests, or hash load balancing method. |
| Apache httpd 2.4.18 | httpd24 | A release of the Apache HTTP Server (httpd), including a high performance event-based processing model, enhanced SSL module and FastCGI support. The mod_auth_kerb module is also included. |
| Varnish Cache 4.0.3 | rh-varnish4 | A release of Varnish Cache, a high-performance HTTP reverse proxy. Varnish Cache stores files or fragments of files in memory that are used to reduce the response time and network bandwidth consumption on future equivalent requests. |
| Thermostat 1.4.4 | thermostat1 | A release of Thermostat, a monitoring and instrumentation tool for the OpenJDK HotSpot JVM, with support for monitoring multiple JVM instances. This Software Collection depends on the rh-mongodb26 and rh-java-common components. |
| DevAssistant 0.9.3 | devassist09 | A release of DevAssistant, a tool designed to assist developers with creating and setting up basic projects in various programming languages, installing dependencies, setting up a development environment, and working with source control. DevAssistant supports the C, C++, Java, and Python programming languages but it is able to support working with any other language, framework, or tool due to its modular architecture. |
| Maven 3.0.5 | maven30 | A release of Maven, a software project management and comprehension tool used primarily for Java projects. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting, and documentation from a central piece of information. |
| Maven 3.3.9[a] | rh-maven33 | A release of Maven, a software project management and comprehension tool used primarily for Java projects. This version provides various enhancements, for example, improved core extension mechanism. |
| Passenger 4.0.50 | rh-passenger40 | A release of Phusion Passenger, a web and application server, designed to be fast, robust, and lightweight. It supports Ruby using the ruby193, ruby200, or rh-ruby22 Software Collections together with Ruby on Rails using the ror40 or rh-ror41 Collections. It can also be used with nginx 1.6 from the nginx16 Software Collection and with Apache httpd from the httpd24 Software Collection. |
| Common Java Packages 1.1 | rh-java-common | This Software Collection provides common Java libraries and tools used by other collections. The rh-java-common Software Collection is required by the devtoolset-4, devtoolset-3, rh-maven33, maven30, rh-mongodb32, rh-mongodb26, and thermostat1 components and it is not supposed to be installed directly by users. |
| V8 3.14.5.10 | v8314 | This Software Collection provides the V8 JavaScript engine and is supported only as a dependency for the mongodb24, rh-mongodb26, rh-mongodb30upg, ruby193, ror40, rh-ror41, and nodejs010 Software Collections. |
[a]
This Software Collection is available only for Red Hat Enterprise Linux 7
| ||
| Component | Software Collection | Availability |
|---|---|---|
| Components New in Red Hat Software Collections 2.2 | ||
| MariaDB 10.1.14 | rh-mariadb101 | RHEL6, RHEL7 |
| Maven 3.3.9 | rh-maven33 | RHEL7 |
| MongoDB 3.0.11 upgrade collection | rh-mongodb30upg | RHEL7 |
| MongoDB 3.2.6 | rh-mongodb32 | RHEL7 |
| Node.js 4.4.2 | rh-nodejs4 | RHEL6, RHEL7 |
| PostgreSQL 9.5.2 | rh-postgresql95 | RHEL6, RHEL7 |
| Python 3.5.1 | rh-python35 | RHEL7 |
| Ruby on Rails 4.2.6 | rh-ror42 | RHEL7 |
| Ruby 2.3.0 | rh-ruby23 | RHEL7 |
| Components Updated in Red Hat Software Collections 2.2 | ||
|---|---|---|
| Red Hat Developer Toolset 4.1 | devtoolset-4 | RHEL6, RHEL7 |
| Apache httpd 2.4.18 | httpd24 | RHEL6, RHEL7 |
| Python 2.7.8 | python27 | RHEL6, RHEL7 |
| Common Java Packages 1.1 | rh-java-common | RHEL6, RHEL7 |
| MongoDB 2.6.9 | rh-mongodb26 | RHEL6, RHEL7 |
| Thermostat 1.4.4 | thermostat1 | RHEL6, RHEL7 |
| Components Not Updated since Red Hat Software Collections 2.1 | ||
|---|---|---|
| Varnish Cache 4.0.3 | rh-varnish4 | RHEL6, RHEL7 |
| nginx 1.8.0 | rh-nginx18 | RHEL6, RHEL7 |
| Node.js 0.10 | nodejs010 | RHEL6, RHEL7 |
| Maven 3.0.5 | maven30 | RHEL6, RHEL7 |
| V8 3.14.5.10 | v8314 | RHEL6, RHEL7 |
| Components Not Updated since Red Hat Software Collections 2.0 | ||
|---|---|---|
| Perl 5.20.1 | rh-perl520 | RHEL6, RHEL7 |
| PHP 5.6.5 | rh-php56 | RHEL6, RHEL7 |
| Python 3.4.2 | rh-python34 | RHEL6, RHEL7 |
| Ruby 2.2.2 | rh-ruby22 | RHEL6, RHEL7 |
| Ruby on Rails 4.1.5 | rh-ror41 | RHEL6, RHEL7 |
| MariaDB 10.0.25 | rh-mariadb100 | RHEL6, RHEL7 |
| MySQL 5.6.30 | rh-mysql56 | RHEL6, RHEL7 |
| PostgreSQL 9.4.6 | rh-postgresql94 | RHEL6, RHEL7 |
| Passenger 4.0.50 | rh-passenger40 | RHEL6, RHEL7 |
| PHP 5.4.40 | php54 | RHEL6, RHEL7 |
| PHP 5.5.21 | php55 | RHEL6, RHEL7 |
| nginx 1.6.2 | nginx16 | RHEL6, RHEL7 |
| DevAssistant 0.9.3 | devassist09 | RHEL6, RHEL7 |
| Components Not Updated since Red Hat Software Collections 1 | ||
|---|---|---|
| Git 1.9.4 | git19 | RHEL6, RHEL7 |
| Perl 5.16.3 | perl516 | RHEL6, RHEL7 |
| Python 3.3.2 | python33 | RHEL6, RHEL7 |
| Ruby 1.9.3 | ruby193 | RHEL6, RHEL7 |
| Ruby 2.0.0 | ruby200 | RHEL6, RHEL7 |
| Ruby on Rails 4.0.2 | ror40 | RHEL6, RHEL7 |
| MariaDB 5.5.44 | mariadb55 | RHEL6, RHEL7 |
| MongoDB 2.4.9 | mongodb24 | RHEL6, RHEL7 |
| MySQL 5.5.45 | mysql55 | RHEL6, RHEL7 |
| PostgreSQL 9.2.15 | postgresql92 | RHEL6, RHEL7 |
rh- prefix in their names.
1.3. Changes in Red Hat Software Collections 2.2 Copia collegamentoCollegamento copiato negli appunti!
1.3.1. Overview Copia collegamentoCollegamento copiato negli appunti!
New Software Collections
- rh-python35 — see Section 1.3.3, “Changes in Python”
- rh-ruby23 — see Section 1.3.4, “Changes in Ruby”
- rh-ror42 — see Section 1.3.5, “Changes in Ruby on Rails”
- rh-mariadb101 — see Section 1.3.6, “Changes in MariaDB”
- rh-mongodb32 — see Section 1.3.7, “Changes in MongoDB”
- rh-mongodb30upg — see Section 1.3.7, “Changes in MongoDB”
- rh-postgresql95 — see Section 1.3.8, “Changes in PostgreSQL”
- rh-nodejs4 — see Section 1.3.9, “Changes in Node.js”
- rh-maven33 — see Section 1.3.12, “Changes in Maven”
- gperftools — Performance Tools is a collection of performance analysis tools, including a high-performance multi-threaded malloc() implementation that works particularly well with threads and Standard Template Library (STL), a thread-friendly heap-checker, a heap profiler, and a cpu-profiler. This is a metapackage which pulls in all of the gperftools (and pprof) binaries, libraries, and development headers. Note that this package is a dependency of the rh-mongodb32 and rh-mongodb30upg Software Collections, and it is available in the Optional channel.
- libunwind — The libunwind packages contain a C API to determine the call chain of a program. This API is necessary for compatibility with Performance Tools (gperftools). This package is a dependency of the rh-mongodb32 and rh-mongodb30upg Software Collections, and it is available in the Optional channel.
Updated Software Collections
- devtoolset-4 — see Section 1.3.2, “Changes in Red Hat Developer Toolset”
- python27 — see Section 1.3.3, “Changes in Python”
- rh-mongodb26 — see Section 1.3.7, “Changes in MongoDB”
- httpd24 — see Section 1.3.10, “Changes in Apache httpd”
- thermostat1 — see Section 1.3.11, “Changes in Thermostat”
- rh-java-common — see Section 1.3.13, “Changes in the Common Java Packages”
Red Hat Software Collections Container Images
- rhscl/devtoolset-4-perftools-rhel7
- rhscl/mariadb-101-rhel7
- rhscl/mongodb-32-rhel7
- rhscl/nginx-18-rhel7
- rhscl/nodejs-4-rhel7
- rhscl/postgresql-95-rhel7
- rhscl/python-35-rhel7
- rhscl/ror-42-rhel7
- rhscl/ruby-23-rhel7
- rhscl/thermostat-1-agent-rhel7
- rhscl/varnish-4-rhel7
- rhscl/devtoolset-4-toolchain-rhel7
- rhscl/httpd-24-rhel7
- rhscl/python-27-rhel7
- rhscl/mariadb-100-rhel7
- rhscl/mongodb-26-rhel7
- rhscl/mysql-56-rhel7
- rhscl/nginx-16-rhel7
- rhscl/passenger-40-rhel7
- rhscl/perl-520-rhel7
- rhscl/php-56-rhel7
- rhscl/postgresql-94-rhel7
- rhscl/python-34-rhel7
- rhscl/ror-41-rhel7
- rhscl/ruby-22-rhel7
- rhscl/s2i-base-rhel7
1.3.2. Changes in Red Hat Developer Toolset Copia collegamentoCollegamento copiato negli appunti!
- Eclipse to version 4.5.2
- GCC to version 5.3.1
- binutils to version 2.25.1
- elfutils to version 0.166
- GDB to version 7.11
- SystemTap to version 2.9
- Valgrind to version 3.11.0
- Dyninst to version 9.1.0
1.3.3. Changes in Python Copia collegamentoCollegamento copiato negli appunti!
Python 2
- The python27-PyYAML package has been added, which contains a Python YAML module. PyYAML is a YAML parser and emitter for Python; it is applicable for a broad range of tasks from complex configuration files to object serialization and persistance.
- Network security enhancements, described in the Python Enhancent Proposal 466, have been backported to the Python standard library. The security enhancements include, for example, new features in the
sslmodule, such as support for Server Name Indication (SNI) as well as support for new TLSv1.x protocols, new hash algorithms in thehashlibmodule, and much more. - The
cert-verification.cfghas been added. It contains new options that allow users to globally enable or disable SSL/TLS certificate verification in the HTTP clients (such as urllib, httplib, or xmlrpclib) of the Python standard library. The options are described in the Python Enhancement Proposal 493. - The python27-python-pip package has been upgraded to version 7.1.0.
- The python27-python-virtualenv package has been upgraded to verion 13.1.0.
- The python27-python-pymongo package has been upgraded to version 3.2.1.
Python 3
- Security improvements
- SSLv3 is now disabled throughout the standard library
- HTTP cookie parsing is now stricter, to protect against potential injection attacks
- New syntax features
- The Python Enhancement Proposal 492 has been implemented, which greatly improves support for asynchronous programming in Python by adding awaitable objects, coroutine functions, asynchronous iteration, and asynchronous context managers
- A new
@infix operator has been added for matrix multiplication. Matrix multiplication is a notably common operation in many fields of mathematics, science, engineering, and the addition of@allows writing cleaner code with specialized libraries likenumpy. This new operator is described in the Python Enhancement Proposal 465
- CPython implementation improvements
- The
.pyofiles are no longer used and have been replaced by a more flexible scheme that includes the optimization level explicitly in the.pycfile names; see the Python Enhancement Proposal 488 for details.
1.3.4. Changes in Ruby Copia collegamentoCollegamento copiato negli appunti!
- Safe navigation operator, also known as a lonely operator
- Frozen String Literal Pragma
- A new command-line option to freeze all string literals in the source files
- A new magic comment
- The
did_you_meangem shows the candidates on the NameError and NoMethodError exceptions to ease debugging. Thedid_you_meangem is bundled.
$SAFE=2 and $SAFE=3 are obsolete.
1.3.5. Changes in Ruby on Rails Copia collegamentoCollegamento copiato negli appunti!
- Active Job
- Asynchronous mails
- Adequate Record
- Web Console
- Foreign key support
- GlobalID serialization
1.3.6. Changes in MariaDB Copia collegamentoCollegamento copiato negli appunti!
- Galera Cluster, a synchronous multi-master cluster, which is a standard part of MariaDB 10.1; see the Knowledgebase article about setting up Galera Cluster with the rh-mariadb101 Software Collection
- Table, tablespace, and log encryption
- InnoDB and XtraDB page compression
- Page compression for FusionIO
1.3.7. Changes in MongoDB Copia collegamentoCollegamento copiato negli appunti!
MongoDB 2.6
MongoDB 3.0 Upgrade Collection
MongoDB 3.2
- New storage engine WiredTiger, which is now default; it provides better performance and document-level locking and compression
- Simplified data governance with document validation
- Support for partial indexes
- New JavaScript engine SpiderMonkey, which replaces V8
- Increased number of replica set members
- A new SCRAM-SHA-1 challenge-response user authentication mechanism.
1.3.8. Changes in PostgreSQL Copia collegamentoCollegamento copiato negli appunti!
- INSERT operations that would generate constraint conflicts are now allowed to be turned into UPDATE operations or ignored (UPSERT operations)
- GROUP BY analysis features have been added: GROUPING SETS, CUBE, and ROLLUP
- Row-level security control has been added
- Mechanisms for tracking the progress of replication have been created, including methods for identifying the origin of individual changes during logical replication
- Block Range Indexes (BRIN) have been added
- Substantial performance improvements for sorting
- Substantial performance improvements for multi-CPU machines
- The rh-postgresql95-postgresql-static package includes the
libpgport.aandlibpgcommon.alibraries. These libraries are required by certain third-party packages to build, for example, by the pg_bulkload and pglogical packages.
1.3.9. Changes in Node.js Copia collegamentoCollegamento copiato negli appunti!
1.3.10. Changes in Apache httpd Copia collegamentoCollegamento copiato negli appunti!
mod_http2 module. HTTP/2 support can be enabled using the new Protocols directive. Upgrading to HTTP/2.0 over TLS is supported using the next protocol negotiation (NPN) TLS extension.
1.3.11. Changes in Thermostat Copia collegamentoCollegamento copiato negli appunti!
- New features:
- A new first-run setup wizard to automatically set up credentials and related information
- The number of threads is now always recorded
- A new tree-map visualization for viewing the heap
- Identification of which garbage collector is being used
- Custom prompt for the Thermostat shell
- Tab completion in the Thermostat shell
- Progress display in the UI for long-running operations
- Graphical representation for Thread deadlock
- A new manual page for Thermostat
- Bug fixes:
- Various actions are now correctly disabled when the JVM they target is no longer alive
- Security-related changes:
- Remote Method Invocation (RMI) is no longer used in the agent
- The command channel now runs as a separate process isolating network-facing code from everything else
- Other improvements:
- New helper classes in storage API for getting the oldest or newest POJOs
- Efficiency improvements, such as implementation of fast-tail paths and querying less data when possible.
1.3.12. Changes in Maven Copia collegamentoCollegamento copiato negli appunti!
- Maven now requires JDK version 1.7 or later to run
- The core extension mechanism has been improved; its usage is now simpler
- New means of passing options to Maven and configuring JVM on per-project basis have been added
- It is now possible to exclude all transitive dependencies using wildcards
- Maven reactor is now pluggable.
1.3.13. Changes in the Common Java Packages Copia collegamentoCollegamento copiato negli appunti!
1.4. Compatibility Information Copia collegamentoCollegamento copiato negli appunti!
1.5. Known Issues Copia collegamentoCollegamento copiato negli appunti!
rh-nodejs4component, BZ#1334856- Multiple packages from the rh-nodej4 Software Collection for Red Hat Enterprise Linux 7 are missing license information or contain incorrect license information.
python27component, BZ#1330489- The python27-python-pymongo package has been updated to version 3.2.1 in Red Hat Software Collections 2.2. Note that this version is not fully compatible with the previously shipped version 2.5.2. For details, see https://api.mongodb.org/python/current/changelog.html.
httpd24component, BZ#1327548- The
mod_sslmodule does not support the Application-Layer Protocol Negotiation (ALPN) protocol on Red Hat Enterprise Linux. Consequently, clients that support upgrading TLS connections to HTTP/2.0 only using ALPN are limited to HTTP/1.1 support. Clients that support the NPN protocol in addition to ALPN (such as Mozilla Firefox) are able to successfully upgrade to HTTP/2.0. httpd24component, BZ#1329639- On Red Hat Enterprise Linux 7, running the
service httpd24-httpd configtestcommand fails with an error message. To work around this problem, run the following command:scl enable httpd24 'apachectl configtest'
scl enable httpd24 'apachectl configtest'Copy to Clipboard Copied! Toggle word wrap Toggle overflow rh-maven33component- When the user has installed both the Red Hat Enterprise Linux system version of maven-local package and the rh-maven33-maven-local package, XMvn, a tool used for building Java RPM packages, run from the rh-maven33 Software Collection tries to read the configuration file from the base system and fails. To work around this problem, uninstall the maven-local package from the base Red Hat Enterprise Linux system.
rh-nodejs4component, BZ#1316626- The
/opt/rh/rh-nodejs4/root/usr/share/licenses/directory is not owned by any package. Consequently, when the rh-nodejs4 collection is uninstalled, this directory is not removed. To work around this problem, remove the directory manually after uninstalling rh-nodejs4. -
rh-mysql56,rh-mariadb100,rh-mariadb101components, BZ#1194611 - The rh-mysql56-mysql-server, rh-mariadb100-mariadb-server, and rh-mariadb101-mariadb-server packages no longer provide the
testdatabase by default. Although this database is not created during initialization, the grant tables are prefilled with the same values as whentestwas created by default. As a consequence, upon a later creation of thetestortest_*databases, these databases have less restricted access rights than is default for new databases.Additionally, when running benchmarks, therun-all-testsscript no longer works out of the box with example parameters. You need to create a test database before running the tests and specify the database name in the--databaseparameter. If the parameter is not specified,testis taken by default but you need to make sure thetestdatabase exist. -
httpd24component, BZ#1224763 - When using the
mod_proxy_fcgimodule with FastCGI Process Manager (PHP-FPM), httpd uses port8000for the FastCGI protocol by default instead of the correct port9000. To work around this problem, specify the correct port explicitly in configuration. -
rh-passenger40component, BZ#1196555 - When Passenger from the rh-passenger40 Software Collection is run as a module for httpd, the functionality is restricted by SELinux policy. To work around this problem, switch the passenger domain to permissive mode by running the following command as
root:semanage permissive -a passenger_t
semanage permissive -a passenger_tCopy to Clipboard Copied! Toggle word wrap Toggle overflow Standalone server and nginx integration are not affected by this issue. -
mongodb24component - The mongodb24 Software Collection from Red Hat Software Collections 1.2 cannot be rebuilt with the rh-java-common and maven30 Software Collections shipped with Red Hat Software Collections 2.2. Additionally, the mongodb24-build and mongodb24-scldevel packages cannot be installed with Red Hat Software Collections 2.2 due to unsatisfied requires on the maven30-javapackages-tools and maven30-maven-local packages. When the mongodb24-scldevel package is installed, broken dependencies are reported and the
yum --skip-brokencommand skips too many packages. Users are advised to update to the rh-mongodb26 Software Collection. -
perlcomponent - When the user tries to use the
mod_perlmodule from both the rh-perl520 and perl516 Software Collections, a conflict in the/opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_perl.sofile occurs. As a consequence, it is impossible to usemod_perlfrom more than one Perl Software Collection. -
nodejs010component - Shared libraries provided by the nodejs010 Software Collection, namely
libcares,libhttp_parser, andlibuv, are not properly prefixed with the Collection name. As a consequence, conflicts with the corresponding system libraries might occur. -
nodejs-hawkcomponent - The nodejs-hawk package uses an implementation of the SHA-1 and SHA-256 algorithms adopted from the CryptoJS project. In this release, the client-side JavaScript is obfuscated. The future fix will involve using crypto features directly from the CryptoJS library.
-
postgresqlcomponent - The postgresql92, rh-postgresql94, and rh-postgresql95 packages for Red Hat Enterprise Linux 6 do not provide the
sepgsqlmodule as this feature requires installation of libselinux version 2.0.99, which is not available in Red Hat Enterprise Linux 6. -
httpd,mariadb,mongodb,mysql,nodejs,perl,php55,rh-php56,python,ruby,ror,thermostat, andv8314components, BZ#1072319 - When uninstalling the httpd24, mariadb55, rh-mariadb100, mongodb24, rh-mongodb26, mysql55, rh-mysql56, nodejs010, perl516, rh-perl520, php55, rh-php56, python27, python33, rh-python34, ruby193, ruby200, rh-ruby22, ror40, rh-ror41, thermostat1, or v8314 packages, the order of uninstalling can be relevant due to ownership of dependent packages. As a consequence, some directories and files might not be removed properly and might remain on the system.
-
mariadb,mysql,postgresql,mongodbcomponents - Red Hat Software Collections 2.2 contains the MySQL 5.6, MariaDB 10.0, MariaDB 10.1, PostgreSQL 9.4, PostgreSQL 9.5, MongoDB 2.6, and MongoDB 3.2 databases. The core Red Hat Enterprise Linux 6 provides earlier versions of the MySQL and PostgreSQL databases (client library and daemon). The core Red Hat Enterprise Linux 7 provides earlier versions of the MariaDB and PostgreSQL databases (client library and daemon). Client libraries are also used in database connectors for dynamic languages, libraries, and so on.The client library packaged in the Red Hat Software Collections database packages in the PostgreSQL component is not supposed to be used, as it is included only for purposes of server utilities and the daemon. Users are instead expected to use the system library and the database connectors provided with the core system.A protocol, which is used between the client library and the daemon, is stable across database versions, so, for example, using the PostgreSQL 9.2 client library with the PostgreSQL 9.4 or 9.5 daemon works as expected.The core Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7 do not include the client library for MongoDB. In order to use this client library for your application, you should use the client library from Red Hat Software Collections and always use the
scl enable ...call every time you run an application linked against this MongoDB client library. -
mariadb,mysql,mongodbcomponents - MariaDB, MySQL, and MongoDB do not make use of the
/opt/provider/collection/rootprefix when creating log files. Note that log files are saved in the/var/opt/provider/collection/log/directory, not in/opt/provider/collection/root/var/log/. -
httpdcomponent - Compiling external applications against the Apache Portable Runtime (APR) and APR-util libraries from the httpd24 Software Collection is not supported. The LD_LIBRARY_PATH environment variable is not set in httpd24 because it is not required by any application in this Software Collection.
-
python27component - In Red Hat Enterprise Linux 7, when the user tries to install the python27-python-debuginfo package, the
/usr/src/debug/Python-2.7.5/Modules/socketmodule.cfile conflicts with the corresponding file from the python-debuginfo package installed on the core system. Consequently, installation of the python27-python-debuginfo fails. To work around this problem, uninstall the python-debuginfo package and then install the python27-python-debuginfo package. -
devassistcomponent - When the user tries to rebuild the devassist09-PyYAML package on Red Hat Enterprise Linux 6, the build fails due to a soft dependency, if the Pyrex or Cython programming languages are detected. To work around this problem, make sure the pyrex or cython packages are not installed on your system.
Other Notes
-
rh-ruby22,rh-python34,rh-php56components - Using Software Collections on a read-only NFS has several limitations.
- Ruby gems cannot be installed while the rh-ruby22 Software Collection is on a read-only NFS. Consequently, for example, when the user tries to install the ab gem using the
gem install abcommand, the following error message is displayed:ERROR: While executing gem ... (Errno::EROFS) Read-only file system @ dir_s_mkdir - /opt/rh/rh-ruby22/root/usr/local/share/gemsERROR: While executing gem ... (Errno::EROFS) Read-only file system @ dir_s_mkdir - /opt/rh/rh-ruby22/root/usr/local/share/gemsCopy to Clipboard Copied! Toggle word wrap Toggle overflow The same problem occurs when the user tries to update or install gems from an external source by running thebundle updateorbundle installcommands. - When installing Python packages on a read-only NFS using the Python Package Index (PyPI), running the
pipcommand fails with an error message similar to this:Read-only file system: '/opt/rh/rh-python34/root/usr/lib/python3.4/site-packages/ipython-3.1.0.dist-info'
Read-only file system: '/opt/rh/rh-python34/root/usr/lib/python3.4/site-packages/ipython-3.1.0.dist-info'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Installing packages from PHP Extension and Application Repository (PEAR) on a read-only NFS using the
pearcommand fails with the error message:Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user
Cannot install, php_dir for channel "pear.php.net" is not writeable by the current userCopy to Clipboard Copied! Toggle word wrap Toggle overflow
This is an expected behavior. -
thermostatcomponent - The
thermostat1-thermostat-tomcat startcommand, which starts the Thermostat web storage endpoint, can be used only on Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7.0. On Red Hat Enterprise Linux 7.1 and later versions, useservice tomcat@thermostat startinstead. -
httpdcomponent - Language modules for Apache are supported only with the Red Hat Software Collections version of Apache httpd and not with the Red Hat Enterprise Linux system versions of httpd. For example, the
mod_wsgimodule from the rh-python34 Collection can be used only with the httpd24 Collection. - all components
- Since Red Hat Software Collections 2.0, configuration files, variable data, and runtime data of individual Collections are stored in different directories than in previous versions of Red Hat Software Collections.
-
coreutils,util-linux,screencomponents - Some utilities, for example, su, login, or screen, do not export environment settings in all cases, which can lead to unexpected results. It is therefore recommended to use sudo instead of su and set the
env_keepenvironment variable in the/etc/sudoersfile. Alternatively, you can run commands in a reverse order; for example:su -l postgres -c "scl enable rh-postgresql94 psql"
su -l postgres -c "scl enable rh-postgresql94 psql"Copy to Clipboard Copied! Toggle word wrap Toggle overflow instead ofscl enable rh-postgresql94 bash su -l postgres -c psql
scl enable rh-postgresql94 bash su -l postgres -c psqlCopy to Clipboard Copied! Toggle word wrap Toggle overflow When using tools like screen or login, you can use the following command to preserve the environment settings:source /opt/rh/<collection_name>/enable
source /opt/rh/<collection_name>/enableCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
php54component - Note that Alternative PHP Cache (APC) in Red Hat Software Collections is provided only for user data cache. For opcode cache, Zend OPcache is provided.
-
pythoncomponent - When the user tries to install more than one scldevel package from the python27, python33, and rh-python34 Software Collections, a transaction check error message is returned. This is an expected behavior because the user can install only one set of the macro files provided by the packages (
%scl_python,%scl_prefix_python). -
phpcomponent - When the user tries to install more than one scldevel package from the php54, php55, and rh-php56 Software Collections, a transaction check error message is returned. This is an expected behavior because the user can install only one set of the macro files provided by the packages (
%scl_php,%scl_prefix_php). -
rubycomponent - When the user tries to install more than one scldevel package from the ruby193, ruby200, and rh-ruby22 Software Collections, a transaction check error message is returned. This is an expected behavior because the user can install only one set of the macro files provided by the packages (
%scl_ruby,%scl_prefix_ruby). -
perlcomponent - When the user tries to install more than one scldevel package from the perl516 and rh-perl520 Software Collections, a transaction check error message is returned. This is an expected behavior because the user can install only one set of the macro files provided by the packages (
%scl_perl,%scl_prefix_perl). -
nginxcomponent - When the user tries to install more than one scldevel package from the nginx16 and rh-nginx18 Software Collections, a transaction check error message is returned. This is an expected behavior because the user can install only one set of the macro files provided by the packages (
%scl_nginx,%scl_prefix_nginx). -
nodejscomponent - When installing the nodejs010 Software Collection, nodejs010 installs GCC in the base Red Hat Enterprise Linux system as a dependency, unless the gcc packages are already installed.
Chapter 2. Installation Copia collegamentoCollegamento copiato negli appunti!
2.1. Getting Access to Red Hat Software Collections Copia collegamentoCollegamento copiato negli appunti!
Optional channel, which are listed in Section 2.1.3, “Packages from the Optional Channel”, cannot be installed from the ISO image.
2.1.1. Using Red Hat Subscription Management Copia collegamentoCollegamento copiato negli appunti!
- Display a list of all subscriptions that are available for your system and determine the pool ID of a subscription that provides Red Hat Software Collections. To do so, type the following at a shell prompt as
root:subscription-manager list --available
subscription-manager list --availableCopy to Clipboard Copied! Toggle word wrap Toggle overflow For each available subscription, this command displays its name, unique identifier, expiration date, and other details related to it. The pool ID is listed on a line beginning withPool Id. - Attach the appropriate subscription to your system by running the following command as
root:subscription-manager attach --pool=pool_id
subscription-manager attach --pool=pool_idCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace pool_id with the pool ID you determined in the previous step. To verify the list of subscriptions your system has currently attached, type asroot:subscription-manager list --consumed
subscription-manager list --consumedCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Display the list of available Yum list repositories to retrieve repository metadata and determine the exact name of the Red Hat Software Collections repositories. As
root, type:subscription-manager repos --list
subscription-manager repos --listCopy to Clipboard Copied! Toggle word wrap Toggle overflow Or alternatively, runyum repolist allfor a brief list.The repository names depend on the specific version of Red Hat Enterprise Linux you are using and are in the following format:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace variant with the Red Hat Enterprise Linux system variant, that is,serverorworkstation. Note that Red Hat Software Collections is supported neither on theClientnor on theComputeNodevariant. - Enable the appropriate repository by running the following command as
root:subscription-manager repos --enable repository
subscription-manager repos --enable repositoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.1.2. Using RHN Classic Copia collegamentoCollegamento copiato negli appunti!
- Display a list of all channels that are available to you and determine the exact name of the Red Hat Software Collections channel. To do so, type the following at a shell prompt as
root:rhn-channel --available-channels
rhn-channel --available-channelsCopy to Clipboard Copied! Toggle word wrap Toggle overflow The name of the channel depends on the specific version of Red Hat Enterprise Linux you are using and is in the following format, where variant is the Red Hat Enterprise Linux system variant (serverorworkstation):Copy to Clipboard Copied! Toggle word wrap Toggle overflow Red Hat Enterprise Linux 7 channels are accessible only through Red Hat Satellite instances.Note
Red Hat Software Collections 2.x are distributed in the same channels as Red Hat Software Collections 1.x. - Subscribe the system to the Red Hat Software Collections channel by running the following command as
root:rhn-channel --add --channel=channel_name
rhn-channel --add --channel=channel_nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace channel_name with the name you determined in the previous step. - Verify the list of channels you are subscribed to. As
root, type:rhn-channel --list
rhn-channel --listCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.1.3. Packages from the Optional Channel Copia collegamentoCollegamento copiato negli appunti!
Optional channel to be enabled in order to complete the full installation of these packages. For detailed instructions on how to subscribe your system to this channel, see the relevant Knowledgebase articles on Red Hat Customer Portal: https://access.redhat.com/solutions/392003 for Red Hat Subscription Management or https://access.redhat.com/solutions/70019 if your system is registered with RHN Classic.
Optional channel to be enabled are listed in the following table.
| Package from a Software Collection | Required Package from the Optional Channel |
|---|---|
| devtoolset-4-dyninst-testsuite | glibc-static |
| devtoolset-4-elfutils-devel | xz-devel |
| devtoolset-4-gcc-plugin-devel | mpfr |
| devtoolset-4-libgccjit | mpfr |
| git19-git-all | cvsps, subversion-perl |
| git19-git-cvs | cvsps |
| git19-git-svn | perl-YAML, subversion-perl |
| git19-perl-Git-SVN | perl-YAML, subversion-perl |
| mariadb55-mariadb-bench | perl-GD |
| mysql55-mysql-bench | perl-GD |
| php54-php-imap | libc-client |
| php54-php-recode | recode |
| php55-php-imap | libc-client |
| php55-php-recode | recode |
| rh-mariadb100-mariadb-bench | perl-GD |
| rh-mariadb101-boost-devel | libicu-devel |
| rh-mariadb101-boost-examples | libicu-devel |
| rh-mariadb101-boost-static | libicu-devel |
| rh-mariadb101-mariadb-bench | perl-GD |
| rh-mysql56-mysql-bench | perl-GD |
| rh-php56-php-imap | libc-client |
| rh-php56-php-recode | recode |
Optional channel in Red Hat Enterprise Linux 7 are listed in the table below.
| Package from a Software Collection | Required Package from the Optional Channel |
|---|---|
| devtoolset-4-dyninst-testsuite | glibc-static |
| devtoolset-4-gcc-plugin-devel | libmpc-devel |
| git19-git-all | cvsps, subversion-perl |
| git19-git-cvs | cvsps |
| git19-git-svn | subversion-perl |
| git19-perl-Git-SVN | subversion-perl |
| httpd24-mod_ldap | apr-util-ldap |
| nodejs010 | c-ares-devel |
| nodejs010-node-gyp | c-ares-devel |
| nodejs010-nodejs-columnify | c-ares-devel |
| nodejs010-nodejs-devel | c-ares-devel |
| nodejs010-nodejs-npmconf | c-ares-devel |
| nodejs010-nodejs-wcwidth | c-ares-devel |
| nodejs010-npm | c-ares-devel |
| rh-mongodb30upg | gperftools, gperftools-devel, gperftools-libs, libunwind, pprof |
| rh-mongodb32 | gperftools, gperftools-devel, gperftools-libs, libunwind, pprof |
| rh-perl520-perl-Pod-Perldoc | groff |
Optional channel are not supported. For details, see the Knowledgebase article https://access.redhat.com/articles/1150793.
2.2. Installing Red Hat Software Collections Copia collegamentoCollegamento copiato negli appunti!
2.2.1. Installing Individual Software Collections Copia collegamentoCollegamento copiato negli appunti!
root:
yum install software_collection...
yum install software_collection...
root:
yum install php54 rh-mariadb100
~]# yum install php54 rh-mariadb100
2.2.2. Installing Optional Packages Copia collegamentoCollegamento copiato negli appunti!
yum list available software_collection-\*
yum list available software_collection-\*
root:
yum install package_name...
yum install package_name...
yum install rh-perl520-perl-CPAN rh-perl520-perl-Archive-Tar
~]# yum install rh-perl520-perl-CPAN rh-perl520-perl-Archive-Tar
2.2.3. Installing Debugging Information Copia collegamentoCollegamento copiato negli appunti!
root:
debuginfo-install package_name
debuginfo-install package_name
debuginfo-install rh-ruby22-ruby
~]# debuginfo-install rh-ruby22-ruby
rhel-variant-rhscl-6-debug-rpms or rhel-variant-rhscl-7-debug-rpms repository as described in Section 2.1.1, “Using Red Hat Subscription Management”. If your system is registered with RHN Classic, subscribe the system to the rhel-x86_64-variant-6-rhscl-1-debuginfo or rhel-x86_64-variant-7-rhscl-1-debuginfo channel as described in Section 2.1.2, “Using RHN Classic”. For more information on how to get access to debuginfo packages, see https://access.redhat.com/solutions/9907.
2.3. Uninstalling Red Hat Software Collections Copia collegamentoCollegamento copiato negli appunti!
root:
yum remove software_collection\*
yum remove software_collection\*
2.4. Rebuilding Red Hat Software Collections Copia collegamentoCollegamento copiato negli appunti!
rpmbuild --define 'scl foo' command, you first need to rebuild the metapackage, which provides the <collection>-build package.
Chapter 3. Usage Copia collegamentoCollegamento copiato negli appunti!
3.1. Using Red Hat Software Collections Copia collegamentoCollegamento copiato negli appunti!
3.1.1. Running an Executable from a Software Collection Copia collegamentoCollegamento copiato negli appunti!
scl enable software_collection... 'command...'
scl enable software_collection... 'command...'
scl enable software_collection... -- command...
scl enable software_collection... -- command...
hello.pl with the Perl interpreter from the perl516 Software Collection, type:
scl enable perl516 'perl hello.pl' Hello, World!
~]$ scl enable perl516 'perl hello.pl'
Hello, World!
scl utility, causing it to be run with the executables from a selected Software Collection in preference to their possible Red Hat Enterprise Linux system equivalents. For a complete list of Software Collections that are distributed with Red Hat Software Collections, see Table 1.1, “Red Hat Software Collections 2.2 Components”.
3.1.2. Running a Shell Session with a Software Collection as Default Copia collegamentoCollegamento copiato negli appunti!
scl enable software_collection... bash
scl enable software_collection... bash
scl enable python27 postgresql92 bash
~]$ scl enable python27 postgresql92 bash
$X_SCLS environment variable, for instance:
echo $X_SCLS python27 postgresql92
~]$ echo $X_SCLS
python27 postgresql92
3.1.3. Running a System Service from a Software Collection Copia collegamentoCollegamento copiato negli appunti!
/etc/rc.d/init.d/ directory. To start such a service in the current session, type the following at a shell prompt as root:
service software_collection-service_name start
service software_collection-service_name start
root:
chkconfig software_collection-service_name on
chkconfig software_collection-service_name on
postgresql service from the postgresql92 Software Collection and enable it in runlevels 2, 3, 4, and 5, type as root:
service postgresql92-postgresql start Starting postgresql92-postgresql service: [ OK ] chkconfig postgresql92-postgresql on
~]# service postgresql92-postgresql start
Starting postgresql92-postgresql service: [ OK ]
~]# chkconfig postgresql92-postgresql on
3.2. Accessing a Manual Page from a Software Collection Copia collegamentoCollegamento copiato negli appunti!
/opt/rh directory.
scl enable software_collection 'man software_collection'
scl enable software_collection 'man software_collection'
scl enable mariadb55 "man mariadb55"
~]$ scl enable mariadb55 "man mariadb55"
3.3. Deploying Applications That Use Red Hat Software Collections Copia collegamentoCollegamento copiato negli appunti!
- Install all required Software Collections and packages manually and then deploy your application, or
- Create a new Software Collection for your application and specify all required Software Collections and other packages as dependencies.
3.4. Dockerfiles for Red Hat Software Collections Copia collegamentoCollegamento copiato negli appunti!
- httpd24
- mariadb55
- mongodb24
- mysql55
- nginx16
- nodejs010
- perl516
- php54
- php55
- postgresql92
- python27
- python33
- rh-mariadb100
- rh-mongodb26
- rh-mysql56
- rh-passenger40
- rh-perl520
- rh-php56
- rh-postgresql94
- rh-python34
- rh-ror41
- rh-ruby22
- ror40
- ruby193
- ruby200
Note
Docker daemon, command line tool, and other necessary components for building and using docker-formatted container images, is currently only available for the Server variant of the Red Hat Enterprise Linux 7 product. Red Hat Software Collections Dockerfiles are distributed for Red Hat Enterprise Linux 6 as well, but the images built using them can only be deployed on Red Hat Enterprise Linux 7 Server.
- Installs the basic set of packages from each Software Collection,
- Exposes some TCP ports; for example, port
80and443for the httpd24 collection.
3.4.1. Installation and Usage Copia collegamentoCollegamento copiato negli appunti!
root:
yum install rhscl-dockerfiles
yum install rhscl-dockerfiles
3.4.2. Deploying Software Collections Dependent on the Red Hat Software Collections Docker Images Copia collegamentoCollegamento copiato negli appunti!
Chapter 4. Specifics of Individual Software Collections Copia collegamentoCollegamento copiato negli appunti!
4.1. Red Hat Developer Toolset Copia collegamentoCollegamento copiato negli appunti!
/opt/ directory. These tools are enabled by the user on demand using the supplied scl utility. Similarly to other Software Collections, these do not replace the Red Hat Enterprise Linux system versions of these tools, nor will they be used in preference to those system versions unless explicitly invoked using the scl utility.
4.2. Thermostat 1 Copia collegamentoCollegamento copiato negli appunti!
Agent, which collects data, and a Client, which allows users to visualize collected data. These components communicate via a storage layer: either directly via MongoDB or indirectly via a Web layer for increased security. A pluggable agent and GUI framework allows for collection and visualization of performance data beyond what is included out of the box.
root:
yum install thermostat1
yum install thermostat1
scl enable thermostat1 bash
scl enable thermostat1 bash
4.3. Ruby on Rails 4.2 Copia collegamentoCollegamento copiato negli appunti!
root:
yum install rh-ror42
yum install rh-ror42
rails s command without requiring rh-nodejs4, disable the coffee-rails and uglifier gems in the Gemfile.
scl enable rh-ror42 bash
scl enable rh-ror42 bash
4.4. MongoDB 3.2 Copia collegamentoCollegamento copiato negli appunti!
root:
yum install rh-mongodb32
yum install rh-mongodb32
scl enable rh-mongodb32 'mongo'
scl enable rh-mongodb32 'mongo'
root:
systemctl start rh-mongodb32-mongod.service
systemctl start rh-mongodb32-mongod.service
root:
systemctl enable rh-mongodb32-mongod.service
systemctl enable rh-mongodb32-mongod.service
root:
systemctl start rh-mongodb32-mongos.service
systemctl start rh-mongodb32-mongos.service
root:
systemctl enable rh-mongodb32-mongos.service
systemctl enable rh-mongodb32-mongos.service
mongos.conf file.
4.5. DevAssistant Copia collegamentoCollegamento copiato negli appunti!
4.5.1. Getting Started with DevAssistant Copia collegamentoCollegamento copiato negli appunti!
root:
yum install devassist09
yum install devassist09
scl enable devassist09 bash
scl enable devassist09 bash
devassistant --help
devassistant --help
da -h
da -h
--help option on each level to list your possible next steps, until you reach the level of an executable subassistant (see Example 4.1, “Creating a New Python Library Project”).
devassistant-gui
devassistant-gui
da-gui
da-gui
devassistant and da commands are equal. Further in the text, we will use only the shorter variant, the da command.
4.5.2. Running Assistants Copia collegamentoCollegamento copiato negli appunti!
create, modify, prepare, and task. To run an assistant, use the following command:
da [--debug] {create,modify,prepare,task} [assistant [arguments]] ...
da [--debug] {create,modify,prepare,task} [assistant [arguments]] ...
| Command | Shortened Command | Description |
|---|---|---|
da create | da crt | Creating a new project from scratch |
da modify | da mod | Working with an existing project |
da prepare | da prep | Preparing a development environment for an upstream project |
da task | Performing a custom task not related to a specific project |
modify, prepare, and task functionalities. These categories are available for users who want to create their own assistants.
4.5.3. Creating Projects with DevAssistant Copia collegamentoCollegamento copiato negli appunti!
| Assistant | Subassistant | Description |
|---|---|---|
| c | app | An application in C |
| lib | A dynamically linked library in C | |
| cpp | app | An application in C++ |
| lib | A dynamically linked library in C++ | |
| java | maven | A simple project using Maven |
| python | lib | A simple library for Python |
--help option.
Example 4.1. Creating a New Python Library Project
- Enable the devassist09 Software Collection by running this command:
scl enable devassist09 bash
~]$ scl enable devassist09 bashCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Display help about DevAssistant by using the
--helpoption:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - List the possible next steps for creating a project by typing:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Display help on the
pythonassistant by typing at a shell prompt:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - List your choices for the only
pythonsubassistant,lib, by running this command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the assistant to create your new Python library project named
mypythonlibby using the following command:da create python lib -n mypythonlib
~]$ da create python lib -n mypythonlibCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.5.4. Backward Compatibility in DevAssistant Copia collegamentoCollegamento copiato negli appunti!
- Since DevAssistant 0.9.3, the variable names in the assistant files are no longer derived from the argument flags but from the argument names. In the following example, the
$foovariable is initialized instead of the$barvariable:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Unknown attributes in the arguments section in the assistant file are no longer allowed. Since DevAssistant 0.9.3, an error message is returned in the following example because the
unknown_attributeis not known to the parser:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.6. Maven Copia collegamentoCollegamento copiato negli appunti!
root:
yum install rh-maven33
yum install rh-maven33
scl enable rh-maven33 bash
scl enable rh-maven33 bash
/opt/rh/rh-maven33/root/etc/maven/settings.xml file.
4.7. Passenger Copia collegamentoCollegamento copiato negli appunti!
/opt/rh/httpd24/root/etc/httpd/conf.d/passenger.conf for an example of Apache httpd configuration, which shows how to use multiple Ruby versions in a single Apache httpd instance.
scl enable nginx16 rh-passenger40 'passenger start'
scl enable nginx16 rh-passenger40 'passenger start'
Chapter 5. Migration Copia collegamentoCollegamento copiato negli appunti!
5.1. Migrating to MariaDB 10.1 Copia collegamentoCollegamento copiato negli appunti!
my.cnf files need to be changed to prevent these specific resources from conflicting. Additionally, it is possible to install the rh-mariadb101 Software Collection while the rh-mariadb100 Collection is still installed and even running.
Note
scl register command.
5.1.1. Notable Differences Between the mariadb100 and rh-mariadb101 Software Collections Copia collegamentoCollegamento copiato negli appunti!
- Galera Cluster, a synchronous multi-master cluster, which is a standard part of MariaDB 10.1. See the Knowledgebase article about setting up Galera Cluster with the rh-mariadb101 Software Collection.
- Since MariaDB 10.1.7, the
SQL_MODEvariable is by default set toNO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USERwhile in earlier versions of MariaDB no default was set. Consequently, theGRANTstatement does not create a user by default. The setting of theSQL_MODEvariable can be changed in the configuration file. See the upstream documentation for details.
5.1.2. Upgrading from the rh-mariadb100 to the rh-mariadb101 Software Collection Copia collegamentoCollegamento copiato negli appunti!
Important
- Install the rh-mariadb101 Software Collection.
yum install rh-mariadb101-mariadb-server
yum install rh-mariadb101-mariadb-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Inspect the configuration of rh-mariadb101, which is stored in the
/etc/opt/rh/rh-mariadb101/my.cnffile and the/etc/opt/rh/rh-mariadb101/my.cnf.d/directory. Compare it with the configuration of rh-mariadb100 stored in/etc/opt/rh/rh-mariadb100/my.cnfand/etc/opt/rh/rh-mariadb100/my.cnf.d/and adjust it if necessary. - Stop the rh-mariadb100 database server, if it is still running.
service rh-mariadb100-mariadb stop
service rh-mariadb100-mariadb stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow - All the data of the rh-mariadb100 Software Collection is stored in the
/var/opt/rh/rh-mariadb100/lib/mysql/directory. Copy the whole content of this directory to/var/opt/rh/rh-mariadb101/lib/mysql/. You can also move the content but remember to back up your data before you continue to upgrade. - Start the rh-mariadb101 database server.
service rh-mariadb101-mariadb start
service rh-mariadb101-mariadb startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Perform the data migration.
scl enable rh-mariadb101 mysql_upgrade
scl enable rh-mariadb101 mysql_upgradeCopy to Clipboard Copied! Toggle word wrap Toggle overflow If therootuser has a non-empty password defined (it should have a password defined), it is necessary to call the mysql_upgrade utility with the-poption and specify the password.scl enable rh-mariadb101 -- mysql_upgrade -p
scl enable rh-mariadb101 -- mysql_upgrade -pCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2. Migrating to MongoDB 3.2 Copia collegamentoCollegamento copiato negli appunti!
5.2.1. Notable Differences Between MongoDB 2.6 and MongoDB 3.2 Copia collegamentoCollegamento copiato negli appunti!
General Changes
- MongoDB now ships configuration files in the YAML format
- MongoDB server and tools are no longer shipped in a single package; MongoDB tools are packaged in rh-mongodb32-mongo-tools
- Improved MongoDB testsuite provided by the rh-mongodb32-mongodb-test package. For more information about usage, install this package and read the
/opt/rh/rh-mongodb32/root/usr/share/mongodb-test/READMEfile.
Compatibility Changes
Compatibility Changes in MongoDB 3.0
- Configuration file options changes due to inclusion of additional storage engines
- Data files must correspond to the configured storage engine; if files in the
dbPathdirectory were created by a storage engine other than the current one, an error is returned - Changes due to using the WiredTiger storage engine:
oplogentries generated by versions of MongoDB earlier than 2.2.1 are overwritten - Replica set configuration validation
- The
w:majoritysemantics has been changed so that thew:majorityvalue is satisfied when a majority of the voting members replicates a write operation - The
local.slavescollection has been removed - The FATAL replica set state no longer exists
- The
mongodump,mongorestore,mongoexport,mongoimport,mongofiles, andmongooplogtools must connect to a running MongoDB instance - The MongoDB 2.4 user model has been removed
- The localhost exception has been changed so that it allows to create only the first user on the admin database
- The
db.addUser()function has been removed; usedb.createUser()anddb.updateUser()instead - TLS/SSL changes
- The
mongoshell versions earlier than 3.0 are not compatible with 3.0 deployments of MongoDB - Index changes
- Direct access to the
system.indexesandsystem.namespacescollections has been deprecated - The following commands have been deprecated:
closeAllDatabases,getoptime,text,indexStats,db.collection.getIndexStats(), anddb.collection.indexStats() - The
DateandTimestampdata types are no longer equivalent for comparison purposes
Compatibility Changes in MongoDB 3.2
- The WiredTiger storage engine is now the default one
- The JavaScript engine has been changed from V8 to SpiderMonkey
- Creation of version 0 indexes is now disallowed
- Aggregation compatibility changes
5.2.2. Upgrading from the rh-mongodb26 to the rh-mongodb32 Software Collection Copia collegamentoCollegamento copiato negli appunti!
Important
/var/opt/rh/rh-mongodb26/lib/mongodb/ directory.
- Install the MongoDB servers and shells from the rh-mongodb30upg and rh-mongodb32 Software Collections:
yum install rh-mongodb30upg rh-mongodb30upg-mongodb rh-mongodb32 rh-mongodb32-mongodb
~]# yum install rh-mongodb30upg rh-mongodb30upg-mongodb rh-mongodb32 rh-mongodb32-mongodbCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Connect the
mongoshell from the rh-mongodb26 Collection to your MongoDB 2.6 server (for example, running onlocalhost, port27017).scl enable rh-mongodb26 'mongo --host localhost --port 27017 admin'
~]$ scl enable rh-mongodb26 'mongo --host localhost --port 27017 admin'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In the
mongoshell, check your data set for compatibility issues mentioned above and fix the ones that affect your application. - Stop the MongoDB 2.6 server:
systemctl stop rh-mongodb26-mongod.service
~]# systemctl stop rh-mongodb26-mongod.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Copy your data to the new location:
cp -a /var/opt/rh/rh-mongodb26/lib/mongodb/* /var/opt/rh/rh-mongodb32/lib/mongodb
~]# cp -a /var/opt/rh/rh-mongodb26/lib/mongodb/* /var/opt/rh/rh-mongodb32/lib/mongodbCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Change the
dbpathvariable in the/etc/opt/rh/rh-mongodb30upg/mongod.conffile to/var/opt/rh/rh-mongodb32/lib/mongodb/. - Start the MongoDB server from the rh-mongodb30upg Software Collection:
systemctl start rh-mongodb30upg-mongod.service
~]# systemctl start rh-mongodb30upg-mongod.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Connect the
mongoshell from the rh-mongodb32 Collection to your MongoDB 3.0 server (for example, running onlocalhost, port27017).scl enable rh-mongodb30upg 'mongo --host localhost --port 27017 admin'
~]$ scl enable rh-mongodb30upg 'mongo --host localhost --port 27017 admin'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In the
mongoshell, check your data set for compatibility issues mentioned above and fix the ones that affect your application. - Stop the MongoDB 3.0 server.
systemctl stop rh-mongodb30upg-mongod.service
~]# systemctl stop rh-mongodb30upg-mongod.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the
rh-mongodb32-mongoddaemon in the/etc/opt/rh/rh-mongodb32/mongod.conffile. - MongoDB 3.2 has the new default storage engine, WiredTiger, which introduces performance improvements. To be able to run the MongoDB server with old data, configure the
rh-mongodb32-mongoddaemon to use the old storage engine. Uncomment theengineproperty in thestoragesection in the/etc/opt/rh/rh-mongodb32/mongod.conffile and change its value tommapv1. - Start the MongoDB 3.2 server.
systemctl start rh-mongodb32-mongod.service
~]# systemctl start rh-mongodb32-mongod.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If you want to use the WiredTiger storage engine, you have to perform additional migration steps described in the MongoDB documentation.
yum install rh-mongodb32-mongo-tools scl enable rh-mongodb32 'mongodump --out ~/mongodb.dump' systemctl stop rh-mongodb32-mongod.service rm -rf /var/opt/rh/rh-mongodb32/lib/mongodb/*
~]# yum install rh-mongodb32-mongo-tools ~]$ scl enable rh-mongodb32 'mongodump --out ~/mongodb.dump' ~]# systemctl stop rh-mongodb32-mongod.service ~]# rm -rf /var/opt/rh/rh-mongodb32/lib/mongodb/*Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change theengineproperty in the/etc/opt/rh/rh-mongodb32/mongod.conftowiredTiger.systemctl start rh-mongodb32-mongod.service scl enable rh-mongodb32 'mongorestore ~/mongodb.dump'
~]# systemctl start rh-mongodb32-mongod.service ~]$ scl enable rh-mongodb32 'mongorestore ~/mongodb.dump'Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.3. Migrating to MySQL 5.6 Copia collegamentoCollegamento copiato negli appunti!
my.cnf files need to be changed to prevent these specific resources from conflicting.
5.3.1. Notable Differences Between MySQL 5.5 and MySQL 5.6 Copia collegamentoCollegamento copiato negli appunti!
- The service has been renamed to
rh-mysql56-mysqldin both Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7 - The
testdatabase is no longer created by default - Configuration files for the rh-mysql56 Software Collection are the
/etc/opt/rh/rh-mysql56/my.cnffile and in the/etc/opt/rh/rh-mysql56/my.cnf.d/directory - Variable files including the database files for the rh-mysql56 Software Collection are located in the
/var/opt/rh/rh-mysql56/lib/directory - The log file for the MySQL daemon is
/var/opt/rh/rh-mysql56/log/mysql/mysqld.log - The pid file for the daemon is
/var/run/rh-mysql56-mysqld/mysqld.pid
scl register command.
5.3.2. Upgrading to the rh-mysql56 Software Collection Copia collegamentoCollegamento copiato negli appunti!
Important
- In the former scenario, the whole dump of all databases from one database is generated and
mysqlis run with the dump file as an input using themysqlimportorLOAD DATA INFILE SQLcommand within the other database. At the same time, the appropriate daemons have to be running during both dumping and restoring. You can use the--all-databasesoption in themysqldumpcall to include all databases in the dump. The--routines,--triggers, and--eventsoptions can also be used if needed. - During the in-place upgrade, the data files are copied from one database directory to another database directory. The daemons must not be running at the time of copying. Set appropriate permissions and SELinux context for the copied files.
mysql_upgrade command. Running mysql_upgrade is necessary to check and repair internal tables.
root user has a non-empty password defined (it should have a password defined), it is necessary to call the mysql_upgrade utility with the -p option and specify the password.
Example 5.1. Dump and Restore Upgrade
- Create a backup from the mysql55 Software Collection:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For upgrading from the mariadb55 Software Collection in Red Hat Enterprise Linux 6, usemariadb55-mysqldas the service name.For upgrading from the mariadb55 Software Collection in Red Hat Enterprise Linux 7, usemariadb55-mariadbas the service name.For upgrading from MariaDB 5.5 from base Red Hat Enterprise Linux 7, usemariadbas the service name and do not usescl enable mysql55 --when creating the dump. - Import the dumped database into the rh-mysql56 Software Collection:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Example 5.2. In-place Upgrade from MySQL 5.5
/opt/rh/mariadb55/root/var/lib/mysql/ as a source when copying the data.
/var/lib/mysql/ as a source when copying the data.
5.4. Migrating to PostgreSQL 9.5 Copia collegamentoCollegamento copiato negli appunti!
5.4.1. Notable Differences Between PostgreSQL 9.4 and PostgreSQL 9.5 Copia collegamentoCollegamento copiato negli appunti!
| Content | postgresql | postgresql92 | rh-postgresql94 | rh-postgresql95 |
|---|---|---|---|---|
| Executables | /usr/bin/ | /opt/rh/postgresql92/root/usr/bin/ | /opt/rh/rh-postgresql94/root/usr/bin/ | /opt/rh/rh-postgresql95/root/usr/bin/ |
| Libraries | /usr/lib64/ | /opt/rh/postgresql92/root/usr/lib64/ | /opt/rh/rh-postgresql94/root/usr/lib64/ | /opt/rh/rh-postgresql95/root/usr/lib64/ |
| Documentation | /usr/share/doc/postgresql/html/ | /opt/rh/postgresql92/root/usr/share/doc/postgresql/html/ | /opt/rh/rh-postgresql94/root/usr/share/doc/postgresql/html/ | /opt/rh/rh-postgresql95/root/usr/share/doc/postgresql/html/ |
| PDF documentation | /usr/share/doc/postgresql-docs/ | /opt/rh/postgresql92/root/usr/share/doc/postgresql-docs/ | /opt/rh/rh-postgresql94/root/usr/share/doc/postgresql-docs/ | /opt/rh/rh-postgresql95/root/usr/share/doc/postgresql-docs/ |
| Contrib documentation | /usr/share/doc/postgresql-contrib/ | /opt/rh/postgresql92/root/usr/share/doc/postgresql-contrib/ | /opt/rh/rh-postgresql94/root/usr/share/doc/postgresql-contrib/ | /opt/rh/rh-postgresql95/root/usr/share/doc/postgresql-contrib/ |
| Source | not installed | not installed | not installed | not installed |
| Data | /var/lib/pgsql/data/ | /opt/rh/postgresql92/root/var/lib/pgsql/data/ | /var/opt/rh/rh-postgresql94/lib/pgsql/data/ | /var/opt/rh/rh-postgresql95/lib/pgsql/data/ |
| Backup area | /var/lib/pgsql/backups/ | /opt/rh/postgresql92/root/var/lib/pgsql/backups/ | /var/opt/rh/rh-postgresql94/lib/pgsql/backups/ | /var/opt/rh/rh-postgresql95/lib/pgsql/backups/ |
| Templates | /usr/share/pgsql/ | /opt/rh/postgresql92/root/usr/share/pgsql/ | /opt/rh/rh-postgresql94/root/usr/share/pgsql/ | /opt/rh/rh-postgresql95/root/usr/share/pgsql/ |
| Procedural Languages | /usr/lib64/pgsql/ | /opt/rh/postgresql92/root/usr/lib64/pgsql/ | /opt/rh/rh-postgresql94/root/usr/lib64/pgsql/ | /opt/rh/rh-postgresql95/root/usr/lib64/pgsql/ |
| Development Headers | /usr/include/pgsql/ | /opt/rh/postgresql92/root/usr/include/pgsql/ | /opt/rh/rh-postgresql94/root/usr/include/pgsql/ | /opt/rh/rh-postgresql95/root/usr/include/pgsql/ |
| Other shared data | /usr/share/pgsql/ | /opt/rh/postgresql92/root/usr/share/pgsql/ | /opt/rh/rh-postgresql94/root/usr/share/pgsql/ | /opt/rh/rh-postgresql95/root/usr/share/pgsql/ |
| Regression tests | /usr/lib64/pgsql/test/regress/ (in the -test package) | /opt/rh/postgresql92/root/usr/lib64/pgsql/test/regress/ (in the -test package) | /opt/rh/rh-postgresql94/root/usr/lib64/pgsql/test/regress/ (in the -test package) | /opt/rh/rh-postgresql95/root/usr/lib64/pgsql/test/regress/ (in the -test package) |
5.4.2. Migrating from a Red Hat Enterprise Linux System Version of PostgreSQL to the PostgreSQL 9.5 Software Collection Copia collegamentoCollegamento copiato negli appunti!
pg_upgrade tool (recommended), or dump the database data into a text file with SQL commands and import it in the new database. Note that the second method is usually significantly slower and may require manual fixes; see the PostgreSQL documentation for more information about this upgrade method. The following procedures are applicable for both Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7 system versions of PostgreSQL.
Important
/var/lib/pgsql/data/ directory.
Procedure 5.1. Fast Upgrade Using the pg_upgrade Tool
- Stop the old PostgreSQL server to ensure that the data is not in an inconsistent state. To do so, type the following at a shell prompt as
root:service postgresql stop
service postgresql stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow To verify that the server is not running, type:service postgresql status
service postgresql statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify that the old directory
/var/lib/pgsql/data/exists:file /var/lib/pgsql/data/
file /var/lib/pgsql/data/Copy to Clipboard Copied! Toggle word wrap Toggle overflow and back up your data. - Verify that the new data directory
/var/opt/rh/rh-postgresql95/lib/pgsql/data/does not exist:file /var/opt/rh/rh-postgresql95/lib/pgsql/data/
file /var/opt/rh/rh-postgresql95/lib/pgsql/data/Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you are running a fresh installation of PostgreSQL 9.5, this directory should not be present in your system. If it is, back it up by running the following command asroot:mv /var/opt/rh/rh-postgresql95/lib/pgsql/data{,-scl-backup}mv /var/opt/rh/rh-postgresql95/lib/pgsql/data{,-scl-backup}Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Upgrade the database data for the new server by running the following command as
root:scl enable rh-postgresql95 -- postgresql-setup --upgrade
scl enable rh-postgresql95 -- postgresql-setup --upgradeCopy to Clipboard Copied! Toggle word wrap Toggle overflow Alternatively, you can use the/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup --upgradecommand.Note that you can use the--upgrade-fromoption for upgrade from different versions of PostgreSQL. The list of possible upgrade scenarios is available using the--upgrade-idsoption.It is recommended that you read the resulting/var/lib/pgsql/upgrade_rh-postgresql95-postgresql.loglog file to find out if any problems occurred during the upgrade. - Start the new server as
root:service rh-postgresql95-postgresql start
service rh-postgresql95-postgresql startCopy to Clipboard Copied! Toggle word wrap Toggle overflow It is also advised that you run theanalyze_new_cluster.shscript as follows:su - postgres -c 'scl enable rh-postgresql95 ~/analyze_new_cluster.sh'
su - postgres -c 'scl enable rh-postgresql95 ~/analyze_new_cluster.sh'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Optionally, you can configure the PostgreSQL 9.5 server to start automatically at boot time. To disable the old system PostgreSQL server, type the following command as
root:chkconfig postgresql off
chkconfig postgresql offCopy to Clipboard Copied! Toggle word wrap Toggle overflow To enable the PostgreSQL 9.5 server, type asroot:chkconfig rh-postgresql95-postgresql on
chkconfig rh-postgresql95-postgresql onCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If your configuration differs from the default one, make sure to update configuration files, especially the
/var/opt/rh/rh-postgresql95/lib/pgsql/data/pg_hba.confconfiguration file. Otherwise only thepostgresuser will be allowed to access the database.
Procedure 5.2. Performing a Dump and Restore Upgrade
- Ensure that the old PostgreSQL server is running by typing the following at a shell prompt as
root:service postgresql start
service postgresql startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Dump all data in the PostgreSQL database into a script file. As
root, type:su - postgres -c 'pg_dumpall > ~/pgdump_file.sql'
su - postgres -c 'pg_dumpall > ~/pgdump_file.sql'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop the old server by running the following command as
root:service postgresql stop
service postgresql stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Initialize the data directory for the new server as
root:scl enable rh-postgresql95-postgresql -- postgresql-setup --initdb
scl enable rh-postgresql95-postgresql -- postgresql-setup --initdbCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the new server as
root:service rh-postgresql95-postgresql start
service rh-postgresql95-postgresql startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Import data from the previously created SQL file:
su - postgres -c 'scl enable rh-postgresql95 "psql -f ~/pgdump_file.sql postgres"'
su - postgres -c 'scl enable rh-postgresql95 "psql -f ~/pgdump_file.sql postgres"'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Optionally, you can configure the PostgreSQL 9.5 server to start automatically at boot time. To disable the old system PostgreSQL server, type the following command as
root:chkconfig postgresql off
chkconfig postgresql offCopy to Clipboard Copied! Toggle word wrap Toggle overflow To enable the PostgreSQL 9.5 server, type asroot:chkconfig rh-postgresql95-postgresql on
chkconfig rh-postgresql95-postgresql onCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If your configuration differs from the default one, make sure to update configuration files, especially the
/var/opt/rh/rh-postgresql95/lib/pgsql/data/pg_hba.confconfiguration file. Otherwise only thepostgresuser will be allowed to access the database.
5.4.3. Migrating from the PostgreSQL 9.4 Software Collection to the PostgreSQL 9.5 Software Collection Copia collegamentoCollegamento copiato negli appunti!
pg_upgrade tool (recommended), or dump the database data into a text file with SQL commands and import it in the new database. Note that the second method is usually significantly slower and may require manual fixes; see the PostgreSQL documentation for more information about this upgrade method.
Important
/var/opt/rh/rh-postgresql94/lib/pgsql/data/ directory.
Procedure 5.3. Fast Upgrade Using the pg_upgrade Tool
- Stop the old PostgreSQL server to ensure that the data is not in an inconsistent state. To do so, type the following at a shell prompt as
root:service rh-postgresql94-postgresql stop
service rh-postgresql94-postgresql stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow To verify that the server is not running, type:service rh-postgresql94-postgresql status
service rh-postgresql94-postgresql statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify that the old directory
/var/opt/rh/rh-postgresql94/lib/pgsql/data/exists:file /var/opt/rh/rh-postgresql94/lib/pgsql/data/
file /var/opt/rh/rh-postgresql94/lib/pgsql/data/Copy to Clipboard Copied! Toggle word wrap Toggle overflow and back up your data. - Verify that the new data directory
/var/opt/rh/rh-postgresql95/lib/pgsql/data/does not exist:file /var/opt/rh/rh-postgresql95/lib/pgsql/data/
file /var/opt/rh/rh-postgresql95/lib/pgsql/data/Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you are running a fresh installation of PostgreSQL 9.5, this directory should not be present in your system. If it is, back it up by running the following command asroot:mv /var/opt/rh/rh-postgresql95/lib/pgsql/data{,-scl-backup}mv /var/opt/rh/rh-postgresql95/lib/pgsql/data{,-scl-backup}Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Upgrade the database data for the new server by running the following command as
root:scl enable rh-postgresql95 -- postgresql-setup --upgrade --upgrade-from=rh-postgresql94-postgresql
scl enable rh-postgresql95 -- postgresql-setup --upgrade --upgrade-from=rh-postgresql94-postgresqlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Alternatively, you can use the/opt/rh/rh-postgresql95/root/usr/bin/postgresql-setup --upgrade --upgrade-from=rh-postgresql94-postgresqlcommand.Note that you can use the--upgrade-fromoption for upgrading from different versions of PostgreSQL. The list of possible upgrade scenarios is available using the--upgrade-idsoption.It is recommended that you read the resulting/var/lib/pgsql/upgrade_rh-postgresql95-postgresql.loglog file to find out if any problems occurred during the upgrade. - Start the new server as
root:service rh-postgresql95-postgresql start
service rh-postgresql95-postgresql startCopy to Clipboard Copied! Toggle word wrap Toggle overflow It is also advised that you run theanalyze_new_cluster.shscript as follows:su - postgres -c 'scl enable rh-postgresql95 ~/analyze_new_cluster.sh'
su - postgres -c 'scl enable rh-postgresql95 ~/analyze_new_cluster.sh'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Optionally, you can configure the PostgreSQL 9.5 server to start automatically at boot time. To disable the old PostgreSQL 9.4 server, type the following command as
root:chkconfig rh-postgresql94-postgreqsql off
chkconfig rh-postgresql94-postgreqsql offCopy to Clipboard Copied! Toggle word wrap Toggle overflow To enable the PostgreSQL 9.5 server, type asroot:chkconfig rh-postgresql95-postgresql on
chkconfig rh-postgresql95-postgresql onCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If your configuration differs from the default one, make sure to update configuration files, especially the
/var/opt/rh/rh-postgresql95/lib/pgsql/data/pg_hba.confconfiguration file. Otherwise only thepostgresuser will be allowed to access the database.
Procedure 5.4. Performing a Dump and Restore Upgrade
- Ensure that the old PostgreSQL server is running by typing the following at a shell prompt as
root:service rh-postgresql94-postgresql start
service rh-postgresql94-postgresql startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Dump all data in the PostgreSQL database into a script file. As
root, type:su - postgres -c 'scl enable rh-postgresql94 "pg_dumpall > ~/pgdump_file.sql"'
su - postgres -c 'scl enable rh-postgresql94 "pg_dumpall > ~/pgdump_file.sql"'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop the old server by running the following command as
root:service rh-postgresql94-postgresql stop
service rh-postgresql94-postgresql stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Initialize the data directory for the new server as
root:scl enable rh-postgresql95-postgresql -- postgresql-setup --initdb
scl enable rh-postgresql95-postgresql -- postgresql-setup --initdbCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the new server as
root:service rh-postgresql95-postgresql start
service rh-postgresql95-postgresql startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Import data from the previously created SQL file:
su - postgres -c 'scl enable rh-postgresql95 "psql -f ~/pgdump_file.sql postgres"'
su - postgres -c 'scl enable rh-postgresql95 "psql -f ~/pgdump_file.sql postgres"'Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Optionally, you can configure the PostgreSQL 9.5 server to start automatically at boot time. To disable the old PostgreSQL 9.4 server, type the following command as
root:chkconfig rh-postgresql94-postgresql off
chkconfig rh-postgresql94-postgresql offCopy to Clipboard Copied! Toggle word wrap Toggle overflow To enable the PostgreSQL 9.5 server, type asroot:chkconfig rh-postgresql95-postgresql on
chkconfig rh-postgresql95-postgresql onCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If your configuration differs from the default one, make sure to update configuration files, especially the
/var/opt/rh/rh-postgresql95/lib/pgsql/data/pg_hba.confconfiguration file. Otherwise only thepostgresuser will be allowed to access the database.
5.5. Migrating to nginx 1.8 Copia collegamentoCollegamento copiato negli appunti!
/opt/rh/rh-nginx18/root/. The error log is stored in /var/opt/rh/rh-nginx18/log/nginx by default, and the init script is called rh-nginx18-nginx.
/etc/opt/rh/rh-nginx18/nginx/ directory. Configuration files in nginx 1.8 have the same format as in the previous versions and they are compatible among versions 1.4, 1.6, and 1.8.
Important
/opt/rh/nginx16/root/ tree.
/opt/rh/nginx16/root/ tree, replicate those changes in the new /opt/rh/rh-nginx18/root/ and /etc/opt/rh/rh-nginx18/nginx/ directories, too.
Chapter 6. Additional Resources Copia collegamentoCollegamento copiato negli appunti!
6.1. Red Hat Enterprise Linux Developer Program Group Copia collegamentoCollegamento copiato negli appunti!
6.2. Red Hat Product Documentation Copia collegamentoCollegamento copiato negli appunti!
- Red Hat Software Collections 2.2 Packaging Guide — The Packaging Guide for Red Hat Software Collections explains the concept of Software Collections, documents the
sclutility, and provides a detailed explanation of how to create a custom Software Collection or extend an existing one. - Red Hat Developer Toolset 4.1 Release Notes — The Release Notes for Red Hat Developer Toolset document known problems, possible issues, changes, and other important information about this Software Collection.
- Red Hat Developer Toolset 4.1 User Guide — The User Guide for Red Hat Developer Toolset contains more information about installing and using this Software Collection.
- Using Red Hat Software Collections Container Images — This article provides information on how to use container images based on Red Hat Software Collections. The available container images include applications, daemons, and databases. The images can be run on Red Hat Enterprise Linux 7 Server and Red Hat Enterprise Linux Atomic Host.
- Get Started with Docker Formatted Container Images — This guide contains a comprehensive overview of information about building and using docker-formatted container images on Red Hat Enterprise Linux 7 and Red Hat Enterprise Linux Atomic Host.
- Using and Configuring Red Hat Subscription Manager — The Using and Configuring Red Hat Subscription Manager book provides detailed information on how to register Red Hat Enterprise Linux systems, manage subscriptions, and view notifications for the registered systems.
- Red Hat Enterprise Linux 6 Deployment Guide — The Deployment Guide for Red Hat Enterprise Linux 6 provides relevant information regarding the deployment, configuration, and administration of this system.
- Red Hat Enterprise Linux 7 System Administrator's Guide — The System Administrator's Guide for Red Hat Enterprise Linux 7 provides information on deployment, configuration, and administration of this system.
6.3. Red Hat Developer Blog Copia collegamentoCollegamento copiato negli appunti!
Appendix A. Revision History Copia collegamentoCollegamento copiato negli appunti!
| Revision History | |||
|---|---|---|---|
| Revision 2.2-14 | Tue Dec 18 2018 | ||
| |||
| Revision 2.2-13 | Tue Apr 04 2017 | ||
| |||
| Revision 2.2-12 | Fri Jul 01 2016 | ||
| |||
| Revision 2.2-10 | Tue Jun 21 2016 | ||
| |||
| Revision 2.2-9 | Thu Jun 09 2016 | ||
| |||
| Revision 2.2-8 | Tue May 31 2016 | ||
| |||
| Revision 2.2-3 | Thu May 05 2016 | ||
| |||