Flipkart

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, February 20, 2019

How to Open, Extract and Create Zip, Gz, Tar, Bz2, 7z, Xz and Rar Files in Linux

How to Extract .zip File:

This is the most common compression format used by various IT professions on many operating systems. For this you must of unzip binary installed on your system.

$ unzip filename.zip

How to Create Zip Excluding Specific Files & Directories

How to Extract .gz File:

Gz files are compressed files created using the Gzip compression utility. In general, GZIP is better in compared to ZIP, in terms of compression, especially when compressing a huge number of files. Use gunzip command to extract .gz archive file.

$ gunzip filename.gz

How to Extract .tar File:

Tar is the sort of Tape Archive and also referred as the tarball. This is another popular archiving method which is also known as the consolidated Unix archive format. To extract .tar file use following command

$ tar -xvf filename.tar

How to Create Tar Excluding Specific Files & Directories

How to Extract .tar.gz File:

TAR.GZ file is a combination of TAR and GZIP archives. If provides more compression format of data. You can use -z switch to extract these files.

$ tar -xzf filename.tar.gz

How to Extract .tar.xz File:

The XZ format is a single file compression format and does not offer archiving capabilities. It preserves the original data with no loss in quality. You can use -J switch to extract these files.

$ tar -xJf filename.tar.xz

How to Extract .tar.bz2 File:

Tar.bz2 is an combination of tar and bzip2 archive formats. You can use -j to filter the archive through bzip2. Use the following to extract .tar.bz2 compressed file.

$ tar -xjf filename.tar.bz2

The latest version fo tar automatically detects the archive format. So you can simply use the following command.

$ tar -xf filename.tar.gz

How to Extract .7z File:

These files are 7zip archive files. This is not generally used on Linux systems, but sometimes you may need to extract some source files. You must have the 7zip package installed on your system. Use the following command to extract these files.

$ 7z x filename.7z

How to Extract .rar File:

These are common archive format for Windows systems, but Linux users avoid to use this. Still you may need sometimes to extract .rar file on Linux. You can use 7z command to extract this or unrar.

$ 7z x filename.rar # Using 7zip

Install RAR tool

If you are using Redhat Linux or Centos, then use yum command as follows to install unRAR command.

#yum install unrar

The unRAR command supports various options, below are common options that you need to for extracting files. Listed below are few examples of RAR and unRAR command.

1. RAR a single file

#rar a log-cups.rar /var/log/log-cups

RAR 3.90 beta 2 Copyright (c) 1993-2009

Alexander Roshal 3 Jun 2009

Shareware version Type RAR -? for help

Evaluation copy. Please register.

Creating archive syslog.rar

Adding /var/log/syslog OK

Done

2. RAR multiple files

Compress ‘file1′, ‘file2′ and ‘file3′ simultaneously,

#rar a file1.rar file1 file2 file3

You can also use the following method to RAR multiple files.

#rar a -r file1.rar file1 file2 file3

3. unRAR compressed file

#unrar e file1.rar

4. List the content of a RAR file without extracting the file

#unrar l file1.rar

5. Extract files with full path

#unrar x file1.rar

6. Check the integrity of archive file

#unrar t file1.rar

7. Create a password protected RAR file

While archiving, you can encrypt files with the password (using -p option). If you omit the password on the command line, you will be prompted with message “enter password” and password is case sensitive.

#rar a -pQAZWSX backup '*.txt'

Tuesday, January 15, 2019

How to Install PHP 5.6 on CentOS 7

To install PHP 5.6, you have to install and enable EPEL and Remi repository.

# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

# yum install yum-utils

If you want to install PHP 5.5, PHP 5.6 or PHP 7.2 on CentOS 7, just enable it and install as shown.

# yum-config-manager --enable remi-php55 [Install PHP 5.5]
# yum-config-manager --enable remi-php56 [Install PHP 5.6]
# yum-config-manager --enable remi-php72 [Install PHP 7.2]

We have chosen to install PHP 5.6.

# yum-config-manager --enable remi-php56 [Install PHP 5.6]
# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo

Afterwards, double check the installed version of PHP on your system.

# php -v

mariadb installation on linux 7

[root@localhost ~]# yum install -y mariadb*

Loaded plugins: langpacks, ulninfo

Resolving Dependencies

--> Running transaction check

---> Package mariadb.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-bench.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-devel.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: openssl-devel(x86-64) for package: 1:mariadb-devel-5. 5.60-1.el7_5.x86_64

---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-server.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: perl-DBD-MySQL for package: 1:mariadb-server-5.5.60-1 .el7_5.x86_64

---> Package mariadb-test.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: perl(Test::More) for package: 1:mariadb-test-5.5.60-1 .el7_5.x86_64

--> Processing Dependency: perl(Env) for package: 1:mariadb-test-5.5.60-1.el7_5. x86_64

--> Running transaction check

---> Package openssl-devel.x86_64 1:1.0.2k-16.0.1.el7 will be installed

--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.2 k-16.0.1.el7.x86_64

--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2 k-16.0.1.el7.x86_64

---> Package perl-DBD-MySQL.x86_64 0:4.023-6.0.1.el7 will be installed

---> Package perl-Env.noarch 0:1.04-2.el7 will be installed

---> Package perl-Test-Simple.noarch 0:0.98-243.el7 will be installed

--> Running transaction check

---> Package krb5-devel.x86_64 0:1.15.1-34.el7 will be installed

--> Processing Dependency: libkadm5(x86-64) = 1.15.1-34.el7 for package: krb5-de vel-1.15.1-34.el7.x86_64

--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-34.el7. x86_64

--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-34.el 7.x86_64

--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-34.el 7.x86_64

--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-34 .el7.x86_64

---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed

--> Running transaction check

---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed

---> Package libcom_err-devel.x86_64 0:1.42.9-13.el7 will be installed

---> Package libkadm5.x86_64 0:1.15.1-34.el7 will be installed

---> Package libselinux-devel.x86_64 0:2.5-14.1.el7 will be installed

--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libseli nux-devel-2.5-14.1.el7.x86_64

--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5 -14.1.el7.x86_64

---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed

--> Running transaction check

---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed

Removing mariadb-libs.x86_64 1:5.5.60-1.el7_5 - u due to obsoletes from installe d mysql-community-libs-5.7.19-1.el7.x86_64

--> Restarting Dependency Resolution with new changes.

--> Running transaction check

---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-devel-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-test-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-test-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-devel-5.5.60-1.el7_5.x86_64

--> Running transaction check

---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed

Removing mariadb-libs.x86_64 1:5.5.60-1.el7_5 - u due to obsoletes from installe d mysql-community-libs-5.7.19-1.el7.x86_64

--> Restarting Dependency Resolution with new changes.

--> Running transaction check

---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-devel-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-test-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-test-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-5.5.60-1.el7_5.x86_64

--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 for package: 1:mariadb-devel-5.5.60-1.el7_5.x86_64

--> Finished Dependency Resolution

Error: Package: 1:mariadb-server-5.5.60-1.el7_5.x86_64 (Local_ol7_latest)

Requires: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5

Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (Local_ol7_u0_base)

mariadb-libs(x86-64) = 1:5.5.35-3.el7

Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.52-1.el7

Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.56-2.el7

Available: 1:mariadb-libs-5.5.60-1.el7_5.i686 (Local_ol7_latest)

~mariadb-libs(x86-32) = 1:5.5.60-1.el7_5

Error: Package: 1:mariadb-test-5.5.60-1.el7_5.x86_64 (Local_ol7_latest)

Requires: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5

Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (Local_ol7_u0_base)

mariadb-libs(x86-64) = 1:5.5.35-3.el7

Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.52-1.el7

Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.56-2.el7

Available: 1:mariadb-libs-5.5.60-1.el7_5.i686 (Local_ol7_latest)

~mariadb-libs(x86-32) = 1:5.5.60-1.el7_5

Error: Package: 1:mariadb-5.5.60-1.el7_5.x86_64 (Local_ol7_latest)

Requires: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5

Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (Local_ol7_u0_base)

mariadb-libs(x86-64) = 1:5.5.35-3.el7

Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.52-1.el7

Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.56-2.el7

Available: 1:mariadb-libs-5.5.60-1.el7_5.i686 (Local_ol7_latest)

~mariadb-libs(x86-32) = 1:5.5.60-1.el7_5

Error: Package: 1:mariadb-server-5.5.60-1.el7_5.x86_64 (ol7_latest)

Requires: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5

Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (Local_ol7_u0_base)

mariadb-libs(x86-64) = 1:5.5.35-3.el7

Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.52-1.el7

Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.56-2.el7

Available: 1:mariadb-libs-5.5.60-1.el7_5.i686 (Local_ol7_latest)

~mariadb-libs(x86-32) = 1:5.5.60-1.el7_5

Error: Package: 1:mariadb-test-5.5.60-1.el7_5.x86_64 (ol7_latest)

Requires: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5

Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (Local_ol7_u0_base)

mariadb-libs(x86-64) = 1:5.5.35-3.el7

Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.52-1.el7

Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.56-2.el7

Available: 1:mariadb-libs-5.5.60-1.el7_5.i686 (Local_ol7_latest)

~mariadb-libs(x86-32) = 1:5.5.60-1.el7_5

Error: Package: 1:mariadb-5.5.60-1.el7_5.x86_64 (ol7_latest)

Requires: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5

Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (Local_ol7_u0_base)

mariadb-libs(x86-64) = 1:5.5.35-3.el7

Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.52-1.el7

Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.56-2.el7

Available: 1:mariadb-libs-5.5.60-1.el7_5.i686 (Local_ol7_latest)

~mariadb-libs(x86-32) = 1:5.5.60-1.el7_5

Error: Package: 1:mariadb-devel-5.5.60-1.el7_5.x86_64 (ol7_latest)

Requires: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5

Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (Local_ol7_u0_base)

mariadb-libs(x86-64) = 1:5.5.35-3.el7

Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.52-1.el7

Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.56-2.el7

Available: 1:mariadb-libs-5.5.60-1.el7_5.i686 (Local_ol7_latest)

~mariadb-libs(x86-32) = 1:5.5.60-1.el7_5

Error: Package: 1:mariadb-devel-5.5.60-1.el7_5.x86_64 (Local_ol7_latest)

Requires: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5

Available: 1:mariadb-libs-5.5.35-3.el7.x86_64 (Local_ol7_u0_base)

mariadb-libs(x86-64) = 1:5.5.35-3.el7

Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.52-1.el7

Available: 1:mariadb-libs-5.5.56-2.el7.x86_64 (Local_ol7_latest)

mariadb-libs(x86-64) = 1:5.5.56-2.el7

Available: 1:mariadb-libs-5.5.60-1.el7_5.i686 (Local_ol7_latest)

~mariadb-libs(x86-32) = 1:5.5.60-1.el7_5

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

[root@localhost ~]#

[root@localhost ~]# yum install mariadb-libs

Loaded plugins: langpacks, ulninfo

Resolving Dependencies

--> Running transaction check

---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed

Removing mariadb-libs.x86_64 1:5.5.60-1.el7_5 - u due to obsoletes from installe d mysql-community-libs-5.7.19-1.el7.x86_64

--> Restarting Dependency Resolution with new changes.

--> Running transaction check

---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed

--> Finished Dependency Resolution

[root@localhost ~]#

[root@localhost ~]# yum remove mysql-community-libs

Loaded plugins: langpacks, ulninfo

Resolving Dependencies

--> Running transaction check

---> Package mysql-community-libs.x86_64 0:5.7.19-1.el7 will be erased

--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-libs-compat-5.7.19-1.el7.x86_64

--> Running transaction check

---> Package mysql-community-libs-compat.x86_64 0:5.7.19-1.el7 will be erased

--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: php-mysql-5.4.45-17.el7.remi.x86_64

--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-7.el7.x86_64

--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: zabbix-server-mysql-4.0.3-1.el7.x86_64

--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: php-mysql-5.4.45-17.el7.remi.x86_64

--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-7.el7.x86_64

--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: zabbix-server-mysql-4.0.3-1.el7.x86_64

--> Running transaction check

---> Package php-mysql.x86_64 0:5.4.45-17.el7.remi will be erased

--> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.0.3-1.el7.noarch

---> Package postfix.x86_64 2:2.10.1-7.el7 will be erased

---> Package zabbix-server-mysql.x86_64 0:4.0.3-1.el7 will be erased

--> Running transaction check

---> Package zabbix-web-mysql.noarch 0:4.0.3-1.el7 will be erased

--> Processing Dependency: zabbix-web-database = 4.0.3-1.el7 for package: zabbix-web-4.0.3-1.el7.noarch

--> Running transaction check

---> Package zabbix-web.noarch 0:4.0.3-1.el7 will be erased

--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================

Package Arch Version Repository Size

=============================================================================================================================================================================================================================================

Removing:

mysql-community-libs x86_64 5.7.19-1.el7 @Server-Mysql/7.4 9.4 M

Removing for dependencies:

mysql-community-libs-compat x86_64 5.7.19-1.el7 @Server-Mysql/7.4 9.2 M

php-mysql x86_64 5.4.45-17.el7.remi @remi-php54 476 k

postfix x86_64 2:2.10.1-7.el7 @Local_ol7_latest 12 M

zabbix-server-mysql x86_64 4.0.3-1.el7 @zabbix 4.9 M

zabbix-web noarch 4.0.3-1.el7 @zabbix 16 M

zabbix-web-mysql noarch 4.0.3-1.el7 @zabbix 0.0

Transaction Summary

=============================================================================================================================================================================================================================================

Remove 1 Package (+6 Dependent packages)

Installed size: 52 M

[root@localhost ~]# yum install -y mariadb*

Loaded plugins: langpacks, ulninfo

Resolving Dependencies

--> Running transaction check

---> Package mariadb.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-bench.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-devel.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: openssl-devel(x86-64) for package: 1:mariadb-devel-5.5.60-1.el7_5.x86_64

---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-server.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: perl-DBD-MySQL for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64

---> Package mariadb-test.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: perl(Test::More) for package: 1:mariadb-test-5.5.60-1.el7_5.x86_64

--> Processing Dependency: perl(Env) for package: 1:mariadb-test-5.5.60-1.el7_5.x86_64

--> Running transaction check

---> Package openssl-devel.x86_64 1:1.0.2k-16.0.1.el7 will be installed

--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.0.1.el7.x86_64

--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.0.1.el7.x86_64

---> Package perl-DBD-MySQL.x86_64 0:4.023-6.0.1.el7 will be installed

---> Package perl-Env.noarch 0:1.04-2.el7 will be installed

---> Package perl-Test-Simple.noarch 0:0.98-243.el7 will be installed

--> Running transaction check

---> Package krb5-devel.x86_64 0:1.15.1-34.el7 will be installed

--> Processing Dependency: libkadm5(x86-64) = 1.15.1-34.el7 for package: krb5-devel-1.15.1-34.el7.x86_64

--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-34.el7.x86_64

--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-34.el7.x86_64

--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-34.el7.x86_64

--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-34.el7.x86_64

---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed

--> Running transaction check

---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed

---> Package libcom_err-devel.x86_64 0:1.42.9-13.el7 will be installed

---> Package libkadm5.x86_64 0:1.15.1-34.el7 will be installed

---> Package libselinux-devel.x86_64 0:2.5-14.1.el7 will be installed

--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-14.1.el7.x86_64

--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-14.1.el7.x86_64

---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed

--> Running transaction check

---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================

Package Arch Version Repository Size

=============================================================================================================================================================================================================================================

Installing:

mariadb x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 8.9 M

mariadb-bench x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 387 k

mariadb-devel x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 754 k

mariadb-libs x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 758 k

mariadb-server x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 11 M

mariadb-test x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 8.1 M

Installing for dependencies:

keyutils-libs-devel x86_64 1.5.8-3.el7 Local_ol7_latest 37 k

krb5-devel x86_64 1.15.1-34.el7 Local_ol7_latest 271 k

libcom_err-devel x86_64 1.42.9-13.el7 Local_ol7_latest 31 k

libkadm5 x86_64 1.15.1-34.el7 Local_ol7_latest 177 k

libselinux-devel x86_64 2.5-14.1.el7 Local_ol7_latest 186 k

libsepol-devel x86_64 2.5-10.el7 Local_ol7_latest 76 k

libverto-devel x86_64 0.2.5-4.el7 Local_ol7_latest 11 k

openssl-devel x86_64 1:1.0.2k-16.0.1.el7 Local_ol7_latest 1.5 M

perl-DBD-MySQL x86_64 4.023-6.0.1.el7 Local_ol7_latest 140 k

perl-Env noarch 1.04-2.el7 Local_ol7_latest 15 k

perl-Test-Simple noarch 0.98-243.el7 Local_ol7_latest 169 k

zlib-devel x86_64 1.2.7-18.el7 Local_ol7_latest 49 k

Transaction Summary

=============================================================================================================================================================================================================================================

Install 6 Packages (+12 Dependent packages)

Total download size: 32 M

Installed size: 247 M

Downloading packages:

(1/18): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00:00

(2/18): krb5-devel-1.15.1-34.el7.x86_64.rpm | 271 kB 00:00:00

(3/18): libcom_err-devel-1.42.9-13.el7.x86_64.rpm | 31 kB 00:00:00

(4/18): libkadm5-1.15.1-34.el7.x86_64.rpm | 177 kB 00:00:00

(5/18): libselinux-devel-2.5-14.1.el7.x86_64.rpm | 186 kB 00:00:00

(6/18): libsepol-devel-2.5-10.el7.x86_64.rpm | 76 kB 00:00:00

(7/18): libverto-devel-0.2.5-4.el7.x86_64.rpm | 11 kB 00:00:00

(8/18): mariadb-bench-5.5.60-1.el7_5.x86_64.rpm | 387 kB 00:00:00

(9/18): mariadb-devel-5.5.60-1.el7_5.x86_64.rpm | 754 kB 00:00:00

(10/18): mariadb-libs-5.5.60-1.el7_5.x86_64.rpm | 758 kB 00:00:00

(11/18): mariadb-5.5.60-1.el7_5.x86_64.rpm | 8.9 MB 00:00:00

(12/18): mariadb-server-5.5.60-1.el7_5.x86_64.rpm | 11 MB 00:00:00

(13/18): openssl-devel-1.0.2k-16.0.1.el7.x86_64.rpm | 1.5 MB 00:00:00

(14/18): perl-DBD-MySQL-4.023-6.0.1.el7.x86_64.rpm | 140 kB 00:00:00

(15/18): mariadb-test-5.5.60-1.el7_5.x86_64.rpm | 8.1 MB 00:00:00

(16/18): perl-Env-1.04-2.el7.noarch.rpm | 15 kB 00:00:00

(17/18): perl-Test-Simple-0.98-243.el7.noarch.rpm | 169 kB 00:00:00

(18/18): zlib-devel-1.2.7-18.el7.x86_64.rpm | 49 kB 00:00:00

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total 43 MB/s | 32 MB 00:00:00

Running transaction check

Running transaction test

Transaction check error:

file /usr/share/mysql/charsets/Index.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/armscii8.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/ascii.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/cp1250.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/cp1256.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/cp1257.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/cp850.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/cp852.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/cp866.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/dec8.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/geostd8.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/greek.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/hebrew.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/hp8.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/keybcs2.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/koi8r.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/koi8u.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/latin1.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/latin2.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/latin5.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/latin7.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/macce.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/macroman.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/charsets/swe7.xml from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/czech/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/danish/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/dutch/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/english/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/estonian/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/french/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/german/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/greek/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/hungarian/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/italian/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/japanese/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/korean/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/norwegian/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/polish/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/portuguese/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/romanian/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/russian/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/serbian/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/slovak/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/spanish/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/swedish/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/ukrainian/errmsg.sys from install of mariadb-libs-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

file /usr/share/mysql/errmsg-utf8.txt from install of mariadb-server-1:5.5.60-1.el7_5.x86_64 conflicts with file from package mysql-community-common-5.7.19-1.el7.x86_64

Error Summary

-------------

[root@localhost ~]# yum remove mysql-community-common

Loaded plugins: langpacks, ulninfo

Resolving Dependencies

--> Running transaction check

---> Package mysql-community-common.x86_64 0:5.7.19-1.el7 will be erased

--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================

Package Arch Version Repository Size

=============================================================================================================================================================================================================================================

Removing:

mysql-community-common x86_64 5.7.19-1.el7 @Server-Mysql/7.4 2.5 M

Transaction Summary

=============================================================================================================================================================================================================================================

Remove 1 Package

Installed size: 2.5 M

Is this ok [y/N]: y

Downloading packages:

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Erasing : mysql-community-common-5.7.19-1.el7.x86_64 1/1

Verifying : mysql-community-common-5.7.19-1.el7.x86_64 1/1

Removed:

mysql-community-common.x86_64 0:5.7.19-1.el7

Complete!

[root@localhost ~]# yum install -y mariadb*

Loaded plugins: langpacks, ulninfo

Resolving Dependencies

--> Running transaction check

---> Package mariadb.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-bench.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-devel.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: openssl-devel(x86-64) for package: 1:mariadb-devel-5.5.60-1.el7_5.x86_64

---> Package mariadb-libs.x86_64 1:5.5.60-1.el7_5 will be installed

---> Package mariadb-server.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: perl-DBD-MySQL for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64

---> Package mariadb-test.x86_64 1:5.5.60-1.el7_5 will be installed

--> Processing Dependency: perl(Test::More) for package: 1:mariadb-test-5.5.60-1.el7_5.x86_64

--> Processing Dependency: perl(Env) for package: 1:mariadb-test-5.5.60-1.el7_5.x86_64

--> Running transaction check

---> Package openssl-devel.x86_64 1:1.0.2k-16.0.1.el7 will be installed

--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.0.1.el7.x86_64

--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.0.1.el7.x86_64

---> Package perl-DBD-MySQL.x86_64 0:4.023-6.0.1.el7 will be installed

---> Package perl-Env.noarch 0:1.04-2.el7 will be installed

---> Package perl-Test-Simple.noarch 0:0.98-243.el7 will be installed

--> Running transaction check

---> Package krb5-devel.x86_64 0:1.15.1-34.el7 will be installed

--> Processing Dependency: libkadm5(x86-64) = 1.15.1-34.el7 for package: krb5-devel-1.15.1-34.el7.x86_64

--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-34.el7.x86_64

--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-34.el7.x86_64

--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-34.el7.x86_64

--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-34.el7.x86_64

---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed

--> Running transaction check

---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed

---> Package libcom_err-devel.x86_64 0:1.42.9-13.el7 will be installed

---> Package libkadm5.x86_64 0:1.15.1-34.el7 will be installed

---> Package libselinux-devel.x86_64 0:2.5-14.1.el7 will be installed

--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-14.1.el7.x86_64

--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-14.1.el7.x86_64

---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed

--> Running transaction check

---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================

Package Arch Version Repository Size

=============================================================================================================================================================================================================================================

Installing:

mariadb x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 8.9 M

mariadb-bench x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 387 k

mariadb-devel x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 754 k

mariadb-libs x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 758 k

mariadb-server x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 11 M

mariadb-test x86_64 1:5.5.60-1.el7_5 Local_ol7_latest 8.1 M

Installing for dependencies:

keyutils-libs-devel x86_64 1.5.8-3.el7 Local_ol7_latest 37 k

krb5-devel x86_64 1.15.1-34.el7 Local_ol7_latest 271 k

libcom_err-devel x86_64 1.42.9-13.el7 Local_ol7_latest 31 k

libkadm5 x86_64 1.15.1-34.el7 Local_ol7_latest 177 k

libselinux-devel x86_64 2.5-14.1.el7 Local_ol7_latest 186 k

libsepol-devel x86_64 2.5-10.el7 Local_ol7_latest 76 k

libverto-devel x86_64 0.2.5-4.el7 Local_ol7_latest 11 k

openssl-devel x86_64 1:1.0.2k-16.0.1.el7 Local_ol7_latest 1.5 M

perl-DBD-MySQL x86_64 4.023-6.0.1.el7 Local_ol7_latest 140 k

perl-Env noarch 1.04-2.el7 Local_ol7_latest 15 k

perl-Test-Simple noarch 0.98-243.el7 Local_ol7_latest 169 k

zlib-devel x86_64 1.2.7-18.el7 Local_ol7_latest 49 k

Transaction Summary

=============================================================================================================================================================================================================================================

Install 6 Packages (+12 Dependent packages)

Total size: 32 M

Installed size: 247 M

Downloading packages:

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : 1:mariadb-libs-5.5.60-1.el7_5.x86_64 1/18

Installing : 1:mariadb-5.5.60-1.el7_5.x86_64 2/18

Installing : perl-DBD-MySQL-4.023-6.0.1.el7.x86_64 3/18

Installing : 1:mariadb-server-5.5.60-1.el7_5.x86_64 4/18

Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 5/18

Installing : libcom_err-devel-1.42.9-13.el7.x86_64 6/18

Installing : libsepol-devel-2.5-10.el7.x86_64 7/18

Installing : libselinux-devel-2.5-14.1.el7.x86_64 8/18

Installing : zlib-devel-1.2.7-18.el7.x86_64 9/18

Installing : libverto-devel-0.2.5-4.el7.x86_64 10/18

Installing : libkadm5-1.15.1-34.el7.x86_64 11/18

Installing : krb5-devel-1.15.1-34.el7.x86_64 12/18

Installing : 1:openssl-devel-1.0.2k-16.0.1.el7.x86_64 13/18

Installing : perl-Test-Simple-0.98-243.el7.noarch 14/18

Installing : perl-Env-1.04-2.el7.noarch 15/18

Installing : 1:mariadb-test-5.5.60-1.el7_5.x86_64 16/18

Installing : 1:mariadb-devel-5.5.60-1.el7_5.x86_64 17/18

Installing : 1:mariadb-bench-5.5.60-1.el7_5.x86_64 18/18

Verifying : 1:mariadb-server-5.5.60-1.el7_5.x86_64 1/18

Verifying : perl-Env-1.04-2.el7.noarch 2/18

Verifying : perl-Test-Simple-0.98-243.el7.noarch 3/18

Verifying : libselinux-devel-2.5-14.1.el7.x86_64 4/18

Verifying : libkadm5-1.15.1-34.el7.x86_64 5/18

Verifying : libverto-devel-0.2.5-4.el7.x86_64 6/18

Verifying : zlib-devel-1.2.7-18.el7.x86_64 7/18

Verifying : 1:mariadb-test-5.5.60-1.el7_5.x86_64 8/18

Verifying : 1:mariadb-libs-5.5.60-1.el7_5.x86_64 9/18

Verifying : krb5-devel-1.15.1-34.el7.x86_64 10/18

Verifying : perl-DBD-MySQL-4.023-6.0.1.el7.x86_64 11/18

Verifying : 1:mariadb-5.5.60-1.el7_5.x86_64 12/18

Verifying : 1:openssl-devel-1.0.2k-16.0.1.el7.x86_64 13/18

Verifying : 1:mariadb-bench-5.5.60-1.el7_5.x86_64 14/18

Verifying : libsepol-devel-2.5-10.el7.x86_64 15/18

Verifying : libcom_err-devel-1.42.9-13.el7.x86_64 16/18

Verifying : 1:mariadb-devel-5.5.60-1.el7_5.x86_64 17/18

Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 18/18

Installed:

mariadb.x86_64 1:5.5.60-1.el7_5 mariadb-bench.x86_64 1:5.5.60-1.el7_5 mariadb-devel.x86_64 1:5.5.60-1.el7_5 mariadb-libs.x86_64 1:5.5.60-1.el7_5 mariadb-server.x86_64 1:5.5.60-1.el7_5 mariadb-test.x86_64 1:5.5.60-1.el7_5

Dependency Installed:

keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.15.1-34.el7 libcom_err-devel.x86_64 0:1.42.9-13.el7 libkadm5.x86_64 0:1.15.1-34.el7 libselinux-devel.x86_64 0:2.5-14.1.el7 libsepol-devel.x86_64 0:2.5-10.el7

libverto-devel.x86_64 0:0.2.5-4.el7 openssl-devel.x86_64 1:1.0.2k-16.0.1.el7 perl-DBD-MySQL.x86_64 0:4.023-6.0.1.el7 perl-Env.noarch 0:1.04-2.el7 perl-Test-Simple.noarch 0:0.98-243.el7 zlib-devel.x86_64 0:1.2.7-18.el7

Complete!

[root@localhost ~]#

Thursday, December 6, 2018

Deinstalling WebLogic 12c

To deinstall WebLogic 12c:

  1. Navigate to this directory:
    MW_Home\oui\bin
  2. Launch this Oracle Universal Installer (OUI) deinstaller program that is located in the above directory
    deinstall.cmd for Windows

You can search file in linux using locate command.

clip_image001

Deinstall.sh file location

/home/test/Oracle/Middleware12.2/oui/bin/deinstall.sh

Once you the deinstallation enter Next to proceed.

clip_image002

Check the packages going to deinstall.

clip_image003

clip_image004

Once deinstallation progress processed enter Next.

clip_image005

clip_image006

Now, Weblogic version is Uninstalled.

Tuesday, November 27, 2018

Bugzilla: Create an account for a new user

Steps

  • Login to your Bugzilla

clip_image001

Note: You must login using Bugzilla administrator or have the “editusers” permission to add a new user account.

  • Click the Administration link in the header or footer

clip_image002

  • Click the Users link

clip_image003

  • Click the “add a new user” link
  • Enter the “Login name” which must be an email address – required
  • Enter the “Real name” – required
  • Enter the “Password” which must be at least 6 characters. If the complexity requirements are set (see User Authentication in Administration Parameters) then these must be met as well – required.
  • Leave “Bugmail Disabled” unchecked.
  • Leave “Disable text” blank.
  • Click the “Add” button

clip_image004

  • The user has now been created. Note that the user has not been notified of their new account. You will need to do this yourself.
  • You are now presented with a screen that allows you to change the user’s access. In most cases you can ignore these settings as the defaults work well. For more details about Bugzilla security see: Setting up Bugzilla Security.
  • Click the “back to the user list” link

clip_image005

Monday, October 8, 2018

How to Install Apache HTTPD on Linux 6

To Install using YUM package:-

# yum install httpd -y

or

# up2date httpd

Install Apache From Source :-

Download URL : http://www-us.apache.org/dist//httpd/httpd-2.4.29.tar.gz

https://httpd.apache.org/download.cgi#apache24

1. Extract the gz file using tar command

# tar -xvzf httpd-2.2.31.tar.gz

# cd httpd-2.2.31

2. Configure the files

#./configure --prefix=PREFIX

3. Compile

# make

Compile the package using make command

4. Install

# make install

finally install using make install command

Start the Apache:-

To Start the httpd server we can use both the following ways

# /etc/init.d/httpd start

or

#apachetl -k start

clip_image001

To Stop :-

Similarly for stopping the apache server, we can use the stop command

# /etc/init.d/httpd stop

or

#apachetl -k stop

Permanent chkconfig Configuration:-

# chkconfig httpd on

To check whether Apache is running or not:-

Below command will check for the port 80 which is the default configured port for Apache HTTPD.

# netstat -tulpn | grep :80

If apache is running we will see the response like below

tcp 0 0 :::80 ::* LISTEN 0 2710371 7760/httpd

Friday, October 5, 2018

Zabbix agent installation on RHEL 6

First download the rpm and install it. Then install the agent.

Repository installation

CentOS/RHEL 6:
rpm -Uvh http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm

To install the agent, run

# yum install zabbix-agent

clip_image001

You can see the agent package installed and dependency packages also get installed.

Check the agent configuration file server IP and hostname of Zabbix server should be defined.

clip_image002

clip_image003

To start the agent service, run:

# service zabbix-agent start

Thursday, October 4, 2018

Install and configure Zabbix agent on CentOS/RHEL 7

First download the rpm and install it. Then install the agent.

Repository installation

CentOS/RHEL 7:

rpm -Uvh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

To install the agent, run

# yum install zabbix-agent

clip_image001

You can see the agent package installed and dependency packages also get installed.

Check the agent configuration file server IP and hostname of Zabbix server should be defined.

clip_image002

clip_image003

To start the agent service, run:

# systemctl start zabbix-agent

How to setup NFS Server on CentOS 7 / RHEL 7

Here are my demo nodes details.

NFS Server IP Address

192.168.12.5

NFS Client IP Address

192.168.12.7

Usage of NFS

File / Folder sharing between Linux systems

Allows to mount remote filesystems locally

Allows applications to share configuration and data files with multiple nodes.

Allows to have updated files across the share.

Install NFS Server

We need to install NFS packages on NFS server, install it using the following command.

[root@server ~]# yum install nfs-utils

Once the packages are installed, enable and start NFS services.

systemctl enable rpcbind

systemctl enable nfs-server

systemctl enable nfs-lock

systemctl enable nfs-idmap

systemctl start rpcbind

systemctl start nfs-server

systemctl start nfs-lock

systemctl start nfs-idmap

Create NFS Share

Create a directory to share with client servers. Here I will be creating a new directory named “nfsfileshare” in “/” partition.

Note: You can also share your existing directory with NFS.

[root@server ~]# mkdir /nfsfileshare

Allow client servers to read and write to the created directory.

[root@server ~]# chmod 777 /nfsfileshare/

We have to modify “/etc/exports“file to make an entry of directory “/nfsfileshare” that you want to share.

[root@server ~]# vi /etc/exports

/nfsfileshare 192.168.12.7(rw,sync,no_root_squash)

/nfsfileshare : shared directory

[root@server ~]# exportfs -r

Configure NFS client

We need to install NFS packages on NFS client-server to mount remote filesystem, install NFS packages using below command.

[root@client ~]# yum -y install nfs-utils

Once the packages are installed, enable and start NFS services.

systemctl enable rpcbind

systemctl start rpcbind

Mount NFS shares on clients

Before mounting the NFS share, we need to check the available shares on the NFS server. To do that,  run the following command on the client-server.

[root@client ~]# showmount -e 192.168.12.5

Export list for 192.168.12.5:

/nfsfileshare 192.168.12.7

[root@client ~]# mkdir /mnt/nfsfileshare

[root@client ~]# mount 192.168.12.5:/nfsfileshare /mnt/nfsfileshare

[root@client ~]# df -hT

Filesystem                 Type      Size  Used Avail Use% Mounted on

devtmpfs                   devtmpfs  478M     0  478M   0% /dev

tmpfs                      tmpfs     489M     0  489M   0% /dev/shm

tmpfs                      tmpfs     489M  620K  488M   1% /run

tmpfs                      tmpfs     489M     0  489M   0% /sys/fs/cgroup

/dev/mapper/fedora-root    xfs        18G  1.3G   17G   8% /

tmpfs                      tmpfs     489M  4.0K  489M   1% /tmp

/dev/sda1                  ext4      477M   93M  355M  21% /boot

tmpfs                      tmpfs      98M     0   98M   0% /run/user/0

192.168.12.5:/nfsfileshare nfs4       50G  858M   50G   2% /mnt/nfsfileshare

Automount NFS Shares

To mount the shares automatically on every reboot, need to modify “/etc/fstab” file of your client system.

Add “green” line at the end.

[root@client ~]# vi /etc/fstab

#

# /etc/fstab

# Created by anaconda on Tue May 22 11:30:49 2018

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

#

/dev/mapper/fedora-root /                       xfs     defaults        0 0

UUID=f748af6c-0de9-4dc0-98e6-959ffc400f2f /boot                   ext4    defaults        1 2

/dev/mapper/fedora-swap swap                    swap    defaults        0 0

192.168.12.5:/nfsfileshare/ /mnt/nfsfileshare nfs rw,sync,hard,intr 0 0

save and close the file.

Reboot the client machine and check the share whether it is automatically mounted or not.

[root@client ~]# reboot

Wednesday, October 3, 2018

How do I change the default port of Tomcat?

Tomcat is most popular web server for hosting java based websites. If you want to install tomcat on your system use following tutorials. By default tomcat runs on port 8080. This tutorial will help you to change tomcat server default port.

Stop tomcat server if it is already running.

Open <Tomcat_Home>/conf/server.xml file for editing.

Look for port *8080* in the xml file and replace with any available port.
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

If there is other tomcat running on the same server, you have to change SHUTDOWN port as well.
<Server port="8005" shutdown="SHUTDOWN">

Start tomcat server.

clip_image001

Monday, October 1, 2018

Creating a New Profile for WebSphere Application Server 8.5

Profile Management Tool was launched.

clip_image001

On WebSphere Customization Toobox, Profile Management Tool, with the Profiles tab selected, click the Create button.

clip_image002

On Profile Management Tools, Environment Selection, highlight the Application server environment type.

Click the Next button.

clip_image003

On Profile Creation Options, select the Typical profile creation radio button.
Note:
Choosing Typical profile creation uses the default configuration settings. It assigns unique names to the profile, node, and host. The tool also assigns unique port values.
Alternatively, you can choose Advanced profile creation to specify your own values for settings such as the location of the profile and names of the profile, node, and host.

Click the Next button.

clip_image004

On Administrative Security, clear the Enable administrative security checkbox.

Click the Next button.

clip_image005

clip_image006

On Profile Creation Summary, review the information for accuracy and click the Create button.

clip_image007

The progress screen is displayed. Wait for the progress to complete 100%, which may take several minutes.

clip_image008

Optionally, on Profile Creation Complete, you can select the check box for Launch the First steps console.

Click the Finish button.

clip_image009

If you chose to run First Steps, on WebSphere Application Server, First steps, select the first option, which is entitled: Installation verification.

clip_image010

Verify that the installation verification completed successfully. You should get the message entitled: The installation verification is complete.

Close the screen for the First steps output.

Verify that you can sign on to the Administration Console. For example:
http://localhost:9060/ibm/console

Installing, Updating, and Configuring WebSphere 8.5 and 8.5.5

    Download all the required software from Oracle JD Edwards Update Center

    • WebSphere Application Server Network Deployment - 3 Disk Images
    • WebSphere Application Server Supplement - 3 Disk Images
    • WebSphere Application Server SDK 1.7 - 3 Disk Images
  • For all supported platforms, you must install the IBM Installation Manager before an IBM WebSphere Application Server can be installed. Follow the steps below to install the Installation Manager.

    1. After you have downloaded and unzipped the IBM Installation Manager software, locate the install executable.

    clip_image001

    Execute ./install to start installation

    # [root@localhost ] # ./install

    clip_image002

    On Install Packages, package selection, select the check box for the latest version of the IBM Installation Manager.

    Click the Next button.

    clip_image003

    On Install Packages, review the International Program License Agreement and click the radio button to accept the terms if you want to continue with the installation.

    Click the Next button.

    clip_image004

    On Install Packages, select a location for Installation Manager, enter an installation directory.
    For example:

    clip_image005

    On Install Packages, summary information, review the summary information and click the Install button to begin the installation.

    clip_image006

    Click on Restart Installation Manager

    clip_image007

    1. You must configure the software repository in the Installation Manager before you can start the product installation. On the initial screen of the IBM Installation Manager, navigate File > Preferences.

    clip_image008

    clip_image009

    clip_image010

    On Preferences, click on the Add Repository... button and enter the location of the repository.config for each of the product

    Enter the below URL in Add Repository

    https://www.ibm.com/software/repositorymanager/V85WASDeveloperILAN

    Optionally, if needed for your installation, you should enable a proxy server and enter proxy information.

    After all repositories are added, click the Install option from the Installation Manager.
    IBM Installation Manager displays a list of available products, as shown in the following example:

    Select the WebSphere Application Server for Developers.

    clip_image011

    clip_image012

    If the IBM Install Manager displays a list of updates, it is recommended that you click the Select Recommended button to accept and install the updates.

    On Install Packages, review the International Program License Agreement and click the radio button to accept the terms if you want to continue with the installation.

    clip_image013

    On Install Packages, select location for the shared resources directory, enter an appropriate location for IMShared. These files will be used by all IBM products installed through the Installation Manager (such as HTTP Server and Customization Toolbox).

    Click the Next button.

    clip_image014

    On Install Packages, translations, select your desired language.

    Click the Next button.

    clip_image015

    On Install Packages, select features, verify that the package for Java JDK is selected.
    Caution:
    Although JDK 1.6 is the default installation, you must choose to install JDK

    Click the Next button.

    Click the Install button.

    clip_image016

    clip_image017

    On Install Packages, the packages are installed, click the Finish button.

    To create a profile, ensure this radio button in the right pane is selected:
    Profile Management Tool to create a profile.

Install and configure Zabbix

Zabbix 3.4 on Linux 7/6

clip_image001

Zabbix is an open source network monitoring software designed to monitor and track the status of various network devices, servers, and virtual machines

Update system

# yum update

Install required packages

# yum install -y mariadb-server

# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml php-bcmath

clip_image003

# service httpd start

# systemctl start httpd

# service mysqld start ………. Linux 5/6

Install Repository with MySQL database

Note: Zabbix 3.0 require PHP 5.4 later

# systemctl start mariadb ……….. Linux 7

# mysql_secure_installation

clip_image005

clip_image006

Configure yum repository to install Zabbix

CentOS/RHEL 7:

# rpm -i https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

CentOS/RHEL 6:

# rpm -i https://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm

Install Zabbix server

# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

# yum update zabbix-server-mysql zabbix-web-mysql zabbix-agent

clip_image008

# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/php-mbstring-5.4.16-45.el7.x86_64.rpm

# rpm –Uvh php-mbstring-5.4.16-45.el7.x86_64.rpm

# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/php-bcmath-5.4.16-45.el7.x86_64.rpm

# rpm -Uvh php-bcmath-5.4.16-45.el7.x86_64.rpm

Now install Zabbix Server

Create initial database

# mysql -u root -p

password

mysql> create database zabbix character set utf8 collate utf8_bin;

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'Password';

FLUSH PRIVILEGES;

mysql> quit;

Import initial schema and data. You will be prompted to enter your newly created password.

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql –u zabbix -p zabbix

Configure the database for Zabbix server

Edit file /etc/zabbix/zabbix_server.conf

DBPassword=password

Configure PHP for Zabbix frontend

Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.# php_value date.timezone Asia/Kolkata

Start Zabbix server and agent processes

Start Zabbix server and agent processes and make it start at system boot:

# systemctl restart zabbix-server zabbix-agent httpd mariadb

# systemctl enable zabbix-server zabbix-agent httpd mariadb

Now your Zabbix server is up and running!

1. Configure Zabbix frontend

Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix

Follow steps described in Zabbix documentation: Installing frontend

2. Start using Zabbix

clip_image010

Check for pre-requisites

Check if you meet all the system requirements. If not configure your php.ini.

clip_image012

Configure DB Connection

Fill your DB details which you created and click on Next Step

clip_image014

Zabbix server details

Edit your server details

clip_image016

Pre-Installation Summary

This will give you a summary of your configuration. Click on Next Step

Install Zabbix

Click on Finish button to install Zabbix serverInstall Zabbix

Click on Finish button to install Zabbix serverInstall Zabbix

Click on Finish button to install Zabbix serverdd

clip_image018

Install Zabbix

Click on Finish button to install Zabbix server

clip_image020

Login to Zabbix

Login to Zabbix with following credentials

UserName : Admin

Password : Zabbix

clip_image022

You will see your Zabbix home screen now

clip_image024