(SSH Client, X-Server and Networking Tools) : Root 192.168.179.4

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 12

[email protected].

4's password:
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 10.0 • │
│ (SSH client, X-server and networking tools) │
│ │
│ → SSH session to [email protected]
│ • SSH compression : v │
│ • SSH-browser : v │
│ • X11-forwarding : x (disabled or not supported by server) │
│ • DISPLAY : 192.168.95.84:0.0 │
│ │
│ → For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘

Last login: Mon Jan 3 13:55:29 2022


[root@niska ~]# cd /media
[root@niska media]# ls
V999317-01.zip
[root@niska media]# unzip --help
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir;
file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage).

-p extract files to pipe, no messages -l list files (short format)


-f freshen existing files, create none -t test compressed archive data
-u update files, create if necessary -z display archive comment only
-v list verbosely/show version info -T timestamp archive to latest
-x exclude files that follow (in xlist) -d extract files into exdir
modifiers:
-n never overwrite existing files -q quiet mode (-qq => quieter)
-o overwrite files WITHOUT prompting -a auto-convert any text files
-j junk paths (do not make directories) -aa treat ALL files as text
-U use escapes for all non-ASCII Unicode -UU ignore any Unicode fields
-C match filenames case-insensitively -L make (some) names lowercase
-X restore UID/GID info -V retain VMS version numbers
-K keep setuid/setgid/tacky permissions -M pipe through "more" pager
-O CHARSET specify a character encoding for DOS, Windows and OS/2 archives
-I CHARSET specify a character encoding for UNIX and other archives

See "unzip -hh" or unzip.txt for more help. Examples:


unzip data1 -x joe => extract all files except joe from zipfile data1.zip
unzip -p foo | more => send contents of foo.zip via pipe into program more
unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer
[root@niska media]# cd /etc/yum.repos.d
[root@niska yum.repos.d]# ls
redhat.repo
[root@niska yum.repos.d]# yum repolis
^[[A^C
^CTraceback (most recent call last):
File "/usr/bin/yum", line 4, in <module>
import yum
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 23, in <module>
import rpm
File "/usr/lib64/python2.7/site-packages/rpm/__init__.py", line 9, in <module>
from rpm._rpm import *
KeyboardInterrupt
[root@niska yum.repos.d]# yum repolist
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
repolist: 0
[root@niska yum.repos.d]# wget --help
GNU Wget 1.14, a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...

Mandatory arguments to long options are mandatory for short options too.

Startup:
-V, --version display the version of Wget and exit.
-h, --help print this help.
-b, --background go to background after startup.
-e, --execute=COMMAND execute a `.wgetrc'-style command.

Logging and input file:


-o, --output-file=FILE log messages to FILE.
-a, --append-output=FILE append messages to FILE.
-d, --debug print lots of debugging information.
-q, --quiet quiet (no output).
-v, --verbose be verbose (this is the default).
-nv, --no-verbose turn off verboseness, without being quiet.
--report-speed=TYPE Output bandwidth as TYPE. TYPE can be bits.
-i, --input-file=FILE download URLs found in local or external FILE.
-F, --force-html treat input file as HTML.
-B, --base=URL resolves HTML input-file links (-i -F)
relative to URL.
--config=FILE Specify config file to use.

Download:
-t, --tries=NUMBER set number of retries to NUMBER (0 unlimits).
--retry-connrefused retry even if connection is refused.
-O, --output-document=FILE write documents to FILE.
-nc, --no-clobber skip downloads that would download to
existing files (overwriting them).
-c, --continue resume getting a partially-downloaded file.
--progress=TYPE select progress gauge type.
-N, --timestamping don't re-retrieve files unless newer than
local.
--no-use-server-timestamps don't set the local file's timestamp by
the one on the server.
-S, --server-response print server response.
--spider don't download anything.
-T, --timeout=SECONDS set all timeout values to SECONDS.
--dns-timeout=SECS set the DNS lookup timeout to SECS.
--connect-timeout=SECS set the connect timeout to SECS.
--read-timeout=SECS set the read timeout to SECS.
-w, --wait=SECONDS wait SECONDS between retrievals.
--waitretry=SECONDS wait 1..SECONDS between retries of a retrieval.
--random-wait wait from 0.5*WAIT...1.5*WAIT secs between
retrievals.
--no-proxy explicitly turn off proxy.
-Q, --quota=NUMBER set retrieval quota to NUMBER.
--bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host.
--limit-rate=RATE limit download rate to RATE.
--no-dns-cache disable caching DNS lookups.
--restrict-file-names=OS restrict chars in file names to ones OS allows.
--ignore-case ignore case when matching files/directories.
-4, --inet4-only connect only to IPv4 addresses.
-6, --inet6-only connect only to IPv6 addresses.
--prefer-family=FAMILY connect first to addresses of specified family,
one of IPv6, IPv4, or none.
--user=USER set both ftp and http user to USER.
--password=PASS set both ftp and http password to PASS.
--ask-password prompt for passwords.
--no-iri turn off IRI support.
--local-encoding=ENC use ENC as the local encoding for IRIs.
--remote-encoding=ENC use ENC as the default remote encoding.
--unlink remove file before clobber.

Directories:
-nd, --no-directories don't create directories.
-x, --force-directories force creation of directories.
-nH, --no-host-directories don't create host directories.
--protocol-directories use protocol name in directories.
-P, --directory-prefix=PREFIX save files to PREFIX/...
--cut-dirs=NUMBER ignore NUMBER remote directory components.

HTTP options:
--http-user=USER set http user to USER.
--http-password=PASS set http password to PASS.
--no-cache disallow server-cached data.
--default-page=NAME Change the default page name (normally
this is `index.html'.).
-E, --adjust-extension save HTML/CSS documents with proper extensions.
--ignore-length ignore `Content-Length' header field.
--header=STRING insert STRING among the headers.
--max-redirect maximum redirections allowed per page.
--proxy-user=USER set USER as proxy username.
--proxy-password=PASS set PASS as proxy password.
--referer=URL include `Referer: URL' header in HTTP request.
--save-headers save the HTTP headers to file.
-U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION.
--no-http-keep-alive disable HTTP keep-alive (persistent connections).
--no-cookies don't use cookies.
--load-cookies=FILE load cookies from FILE before session.
--save-cookies=FILE save cookies to FILE after session.
--keep-session-cookies load and save session (non-permanent) cookies.
--post-data=STRING use the POST method; send STRING as the data.
--post-file=FILE use the POST method; send contents of FILE.
--content-disposition honor the Content-Disposition header when
choosing local file names (EXPERIMENTAL).
--content-on-error output the received content on server errors.
--auth-no-challenge send Basic HTTP authentication information
without first waiting for the server's
challenge.

HTTPS (SSL/TLS) options:


--secure-protocol=PR choose secure protocol, one of auto, SSLv2,
SSLv3, TLSv1, TLSv1_1 and TLSv1_2.
--no-check-certificate don't validate the server's certificate.
--certificate=FILE client certificate file.
--certificate-type=TYPE client certificate type, PEM or DER.
--private-key=FILE private key file.
--private-key-type=TYPE private key type, PEM or DER.
--ca-certificate=FILE file with the bundle of CA's.
--ca-directory=DIR directory where hash list of CA's is stored.
--random-file=FILE file with random data for seeding the SSL PRNG.
--egd-file=FILE file naming the EGD socket with random data.

FTP options:
--ftp-user=USER set ftp user to USER.
--ftp-password=PASS set ftp password to PASS.
--no-remove-listing don't remove `.listing' files.
--no-glob turn off FTP file name globbing.
--no-passive-ftp disable the "passive" transfer mode.
--preserve-permissions preserve remote file permissions.
--retr-symlinks when recursing, get linked-to files (not dir).
WARC options:
--warc-file=FILENAME save request/response data to a .warc.gz file.
--warc-header=STRING insert STRING into the warcinfo record.
--warc-max-size=NUMBER set maximum size of WARC files to NUMBER.
--warc-cdx write CDX index files.
--warc-dedup=FILENAME do not store records listed in this CDX file.
--no-warc-compression do not compress WARC files with GZIP.
--no-warc-digests do not calculate SHA1 digests.
--no-warc-keep-log do not store the log file in a WARC record.
--warc-tempdir=DIRECTORY location for temporary files created by the
WARC writer.

Recursive download:
-r, --recursive specify recursive download.
-l, --level=NUMBER maximum recursion depth (inf or 0 for infinite).
--delete-after delete files locally after downloading them.
-k, --convert-links make links in downloaded HTML or CSS point to
local files.
--backups=N before writing file X, rotate up to N backup files.
-K, --backup-converted before converting file X, back up as X.orig.
-m, --mirror shortcut for -N -r -l inf --no-remove-listing.
-p, --page-requisites get all images, etc. needed to display HTML page.
--strict-comments turn on strict (SGML) handling of HTML comments.

Recursive accept/reject:
-A, --accept=LIST comma-separated list of accepted extensions.
-R, --reject=LIST comma-separated list of rejected extensions.
--accept-regex=REGEX regex matching accepted URLs.
--reject-regex=REGEX regex matching rejected URLs.
--regex-type=TYPE regex type (posix|pcre).
-D, --domains=LIST comma-separated list of accepted domains.
--exclude-domains=LIST comma-separated list of rejected domains.
--follow-ftp follow FTP links from HTML documents.
--follow-tags=LIST comma-separated list of followed HTML tags.
--ignore-tags=LIST comma-separated list of ignored HTML tags.
-H, --span-hosts go to foreign hosts when recursive.
-L, --relative follow relative links only.
-I, --include-directories=LIST list of allowed directories.
--trust-server-names use the name specified by the redirection
url last component.
-X, --exclude-directories=LIST list of excluded directories.
-np, --no-parent don't ascend to the parent directory.

Mail bug reports and suggestions to <[email protected]>.


[root@niska yum.repos.d]# cd /media
[root@niska media]# ls
V999317-01.zip V999535-01.zip
[root@niska media]# unzip V999317-01.zip
Archive: V999317-01.zip
extracting: mysql-commercial-backup-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-commercial-client-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-commercial-common-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-commercial-devel-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-commercial-embedded-compat-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-commercial-libs-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-commercial-libs-compat-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-commercial-server-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-commercial-test-8.0.21-1.1.el7.x86_64.rpm
extracting: mysql-router-commercial-8.0.21-1.1.el7.x86_64.rpm
extracting: README.txt
[root@niska media]# ls
mysql-commercial-backup-8.0.21-1.1.el7.x86_64.rpm mysql-commercial-libs-
8.0.21-1.1.el7.x86_64.rpm README.txt
mysql-commercial-client-8.0.21-1.1.el7.x86_64.rpm mysql-commercial-libs-
compat-8.0.21-1.1.el7.x86_64.rpm V999317-01.zip
mysql-commercial-common-8.0.21-1.1.el7.x86_64.rpm mysql-commercial-server-
8.0.21-1.1.el7.x86_64.rpm V999535-01.zip
mysql-commercial-devel-8.0.21-1.1.el7.x86_64.rpm mysql-commercial-test-
8.0.21-1.1.el7.x86_64.rpm
mysql-commercial-embedded-compat-8.0.21-1.1.el7.x86_64.rpm mysql-router-commercial-
8.0.21-1.1.el7.x86_64.rpm
[root@niska media]# yum install mysql-community-{server,client,common,libs}-*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable <repo>
To enable custom repositories:
yum-config-manager --enable <repo>
[root@niska media]# yum repolist all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
repolist: 0
[root@niska media]#
[root@niska media]#
[root@niska media]# subscription-manager repos --enable
Usage: subscription-manager repos [OPTIONS]

subscription-manager: error: --enable option requires an argument


[root@niska media]# rpm -Ivh mysql-commercial-devel-8.0.21-1.1.el7.x86_64.rpm
rpm: -Ivh: unknown option
[root@niska media]# rpm -Uvh mysql-commercial-devel-8.0.21-1.1.el7.x86_64.rpm
warning: mysql-commercial-devel-8.0.21-1.1.el7.x86_64.rpm: Header V3 DSA/SHA1
Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libmysqlclient.so.21()(64bit) is needed by mysql-commercial-devel-8.0.21-
1.1.el7.x86_64
mysql-commercial-libs(x86-64) >= 8.0.11 is needed by mysql-commercial-devel-
8.0.21-1.1.el7.x86_64
pkgconfig(openssl) is needed by mysql-commercial-devel-8.0.21-1.1.el7.x86_64
[root@niska media]# rpm -Uvh mysql-commercial-libs-8.0.21-1.1.el7.x86_64.rpm
warning: mysql-commercial-libs-8.0.21-1.1.el7.x86_64.rpm: Header V3 DSA/SHA1
Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-commercial-common(x86-64) >= 8.0.11 is needed by mysql-commercial-libs-
8.0.21-1.1.el7.x86_64
libmysqlclient.so.18()(64bit) is needed by (installed) net-snmp-1:5.7.2-
28.el7.x86_64
libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-
6.el7.x86_64
libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed)
postfix-2:2.10.1-6.el7.x86_64
[root@niska media]#
[root@niska media]#
[root@niska media]# subscription-manager repos --enable /etc/yum.repos.d/redhat.repo
Error: '/etc/yum.repos.d/redhat.repo' does not match a valid repository ID. Use
"subscription-manager repos --list" to see valid repositories.
[root@niska media]# ls /etc/yum.repos.d/redhat.repo
/etc/yum.repos.d/redhat.repo
[root@niska media]# ^C
[root@niska media]# subscription-manager repos --list
This system has no repositories available through subscriptions.
[root@niska media]#
[root@niska media]#
[root@niska media]# rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-
3.noarch.rpm
Retrieving https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
warning: /var/tmp/rpm-tmp.oPy9iO: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql80-community-release-el7-3 ################################# [100%]
[root@niska media]#
[root@niska media]#
[root@niska media]#
[root@niska media]# mkdir -p /mnt/disc
[root@niska media]#
[root@niska media]# mount /dev/sr0 /mnt/dsc
mount: mount point /mnt/dsc does not exist
[root@niska media]# mount /dev/sr0 /mnt/disc
mount: no medium found on /dev/sr0
[root@niska media]#
[root@niska media]#
[root@niska media]# mkdir -p /mnt/disc
[root@niska media]# mount -o loop rhel-server-7.4-x86_64-dvd.iso
mount: can't find rhel-server-7.4-x86_64-dvd.iso in /etc/fstab
[root@niska media]# mount -o loop rhel-server-7.4-x86_64-dvd.iso
mount: can't find rhel-server-7.4-x86_64-dvd.iso in /etc/fstab
[root@niska media]#
[root@niska media]#
[root@niska media]# mount /dev/sr0 /mnt/dsc
mount: mount point /mnt/dsc does not exist
[root@niska media]#
[root@niska media]#
[root@niska media]#
[root@niska media]# cd /mnt/disc
[root@niska disc]# mount -o loop /media/rhel-server-7.4-x86_64-dvd.iso
mount: can't find /media/rhel-server-7.4-x86_64-dvd.iso in /etc/fstab
[root@niska disc]# cd /media
[root@niska media]#
[root@niska media]#
[root@niska media]# mount -o loop /media/rhel-server-7.4-x86_64-dvd.iso /mnt/dis
c
mount: /dev/loop0 is write-protected, mounting read-only
[root@niska media]# mount -o loop rhel-server-7.4-x86_64-dvd.iso /mnt/disc
mount: /media/rhel-server-7.4-x86_64-dvd.iso is already mounted
[root@niska media]#
[root@niska media]#
[root@niska media]# cp /mnt/disc/media.repo /etc/yum.
yum.conf yum.repos.d/
[root@niska media]# cp /mnt/disc/media.repo /etc/yum.repos.d/rhel17dvd.repo
[root@niska media]# chmod 644 /etc/yum.repos.d/rhel17dvd.repo
[root@niska media]#
[root@niska media]# vi /etc/yum.repos.d/rhel7dvd.repo
[root@niska media]#
[root@niska media]# vi /etc/yum.repos.d/rhel7dvd.repo
[root@niska media]#
[root@niska media]#
[root@niska media]# mount -o loop rhel-server-7.4-x86_64-dvd.iso /mnt/disc
mount: /media/rhel-server-7.4-x86_64-dvd.iso is already mounted
[root@niska media]# vi /etc/yum/repos.d/rhel7dvd.repo
[root@niska media]# vi /etc/yum/repos.d/rhel7dvd.repo
[root@niska media]#
[root@niska media]#
[root@niska media]# vi /etc/yum.repos.d/rhel7dvd.repo
[root@niska media]#
[root@niska media]# vi /etc/yum.repos.d/rhel7dvd.repo
[root@niska media]#
[root@niska media]#
[root@niska media]# vi /etc/yum.repos.d/rhel7dvd.repo
[root@niska media]# vi /etc/yum.repos.d/rhel7dvd.repo
[root@niska media]#
[root@niska media]#
[root@niska media]# yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscripti
on-manager to register.

File contains parsing errors: file:///etc/yum.repos.d/rhel7dvd.repo


[line 10]: ~

[root@niska media]# vi /etc/yum.repos.d/rhel7dvd.repo


[root@niska media]# yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscripti
on-manager to register.
Repository InstallMedia is listed more than once in the configuration
Cleaning repos: InstallMedia mysql-connectors-community mysql-tools-community
: mysql80-community
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned d
ata from disabled or removed repos
[root@niska media]#
[root@niska media]# yum repolist enabled
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscripti
on-manager to register.
Repository InstallMedia is listed more than once in the configuration
mysql-connectors-community | 2.6 kB 00:00
mysql-tools-community | 2.6 kB 00:00
mysql80-community | 2.6 kB 00:00
(1/3): mysql-tools-community/x86_64/primary_db | 92 kB 00:00
(2/3): mysql-connectors-community/x86_64/primary_db | 87 kB 00:06
(3/3): mysql80-community/x86_64/primary_db | 188 kB 00:06
repo id repo name status
mysql-connectors-community/x86_64 MySQL Connectors Community 221
mysql-tools-community/x86_64 MySQL Tools Community 135
mysql80-community/x86_64 MySQL 8.0 Community Server 301
repolist: 657
[root@niska media]#
[root@niska media]#
[root@niska media]# yum update
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscripti
on-manager to register.
Repository InstallMedia is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be obsoleted
---> Package mysql-community-libs.x86_64 0:8.0.27-1.el7 will be obsoleting
--> Processing Dependency: mysql-community-client-plugins = 8.0.27-1.el7 for pac
kage: mysql-community-libs-8.0.27-1.el7.x86_64
--> Processing Dependency: mysql-community-common(x86-64) >= 8.0.11 for package:
mysql-community-libs-8.0.27-1.el7.x86_64
---> Package mysql-community-libs-compat.x86_64 0:8.0.27-1.el7 will be obsoletin
g
--> Running transaction check
---> Package mysql-community-client-plugins.x86_64 0:8.0.27-1.el7 will be instal
led
---> Package mysql-community-common.x86_64 0:8.0.27-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql-community-libs x86_64 8.0.27-1.el7 mysql80-community 4.7 M
replacing mariadb-libs.x86_64 1:5.5.56-2.el7
mysql-community-libs-compat x86_64 8.0.27-1.el7 mysql80-community 1.2 M
replacing mariadb-libs.x86_64 1:5.5.56-2.el7
Installing for dependencies:
mysql-community-client-plugins x86_64 8.0.27-1.el7 mysql80-community 5.7 M
mysql-community-common x86_64 8.0.27-1.el7 mysql80-community 627 k

Transaction Summary
================================================================================
Install 2 Packages (+2 Dependent packages)

Total download size: 12 M


Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/mysql80-community/packages/mysql-communit
y-common-8.0.27-1.el7.x86_64.rpm: Header V3 DSA/SHA256 Signature, key ID 5072e1f
5: NOKEY
Public key for mysql-community-common-8.0.27-1.el7.x86_64.rpm is not installed
(1/4): mysql-community-common-8.0.27-1.el7.x86_64.rpm | 627 kB 00:10
(2/4): mysql-community-client-plugins-8.0.27-1.el7.x86_64. | 5.7 MB 00:32
(3/4): mysql-community-libs-compat-8.0.27-1.el7.x86_64.rpm | 1.2 MB 00:06
(4/4): mysql-community-libs-8.0.27-1.el7.x86_64.rpm | 4.7 MB 00:33
--------------------------------------------------------------------------------
Total 282 kB/s | 12 MB 00:44
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
Userid : "MySQL Release Engineering <[email protected]>"
Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
Package : mysql80-community-release-el7-3.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : mysql-community-client-plugins-8.0.27-1.el7.x86_64 1/5
Installing : mysql-community-common-8.0.27-1.el7.x86_64 2/5
Installing : mysql-community-libs-8.0.27-1.el7.x86_64 3/5
Installing : mysql-community-libs-compat-8.0.27-1.el7.x86_64 4/5
Erasing : 1:mariadb-libs-5.5.56-2.el7.x86_64 5/5
Verifying : mysql-community-common-8.0.27-1.el7.x86_64 1/5
Verifying : mysql-community-libs-8.0.27-1.el7.x86_64 2/5
Verifying : mysql-community-libs-compat-8.0.27-1.el7.x86_64 3/5
Verifying : mysql-community-client-plugins-8.0.27-1.el7.x86_64 4/5
Verifying : 1:mariadb-libs-5.5.56-2.el7.x86_64 5/5

Installed:
mysql-community-libs.x86_64 0:8.0.27-1.el7
mysql-community-libs-compat.x86_64 0:8.0.27-1.el7

Dependency Installed:
mysql-community-client-plugins.x86_64 0:8.0.27-1.el7
mysql-community-common.x86_64 0:8.0.27-1.el7

Replaced:
mariadb-libs.x86_64 1:5.5.56-2.el7

Complete!
[root@niska media]#
[root@niska media]#
[root@niska media]# yum install perl
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscripti
on-manager to register.
Repository InstallMedia is listed more than once in the configuration
Nothing to do
[root@niska media]# yum install net-tools
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscripti
on-manager to register.
Repository InstallMedia is listed more than once in the configuration
Nothing to do
[root@niska media]# mount -o loop rhel-server-7.4-x86_64-dvd.iso /mnt/disc
mount: /media/rhel-server-7.4-x86_64-dvd.iso is already mounted
[root@niska media]#
[root@niska media]# yum install perl
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Repository InstallMedia is listed more than once in the configuration
Nothing to do
[root@niska media]# yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Repository InstallMedia is listed more than once in the configuration
Cleaning repos: InstallMedia mysql-connectors-community mysql-tools-community mysql80-
community
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data
from disabled or removed repos
[root@niska media]# yum repolist enabled
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Repository InstallMedia is listed more than once in the configuration
mysql-connectors-community
| 2.6 kB 00:00:00
mysql-tools-community
| 2.6 kB 00:00:00
mysql80-community
| 2.6 kB 00:00:00
(1/3): mysql-tools-community/x86_64/primary_db
| 92 kB 00:00:06
(2/3): mysql-connectors-community/x86_64/primary_db
| 87 kB 00:00:06
(3/3): mysql80-community/x86_64/primary_db
| 188 kB 00:00:06
repo id repo name
status
mysql-connectors-community/x86_64 MySQL Connectors
Community 221
mysql-tools-community/x86_64 MySQL Tools
Community 135
mysql80-community/x86_64 MySQL 8.0
Community Server 301
repolist: 657
[root@niska media]# yum update
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Repository InstallMedia is listed more than once in the configuration
No packages marked for update
[root@niska media]# yum install perl
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Repository InstallMedia is listed more than once in the configuration
Nothing to do
[root@niska media]# ls
mysql-commercial-backup-8.0.21-1.1.el7.x86_64.rpm mysql-commercial-server-
8.0.21-1.1.el7.x86_64.rpm
mysql-commercial-client-8.0.21-1.1.el7.x86_64.rpm mysql-commercial-test-
8.0.21-1.1.el7.x86_64.rpm
mysql-commercial-common-8.0.21-1.1.el7.x86_64.rpm mysql-router-commercial-
8.0.21-1.1.el7.x86_64.rpm
mysql-commercial-devel-8.0.21-1.1.el7.x86_64.rpm README.txt
mysql-commercial-embedded-compat-8.0.21-1.1.el7.x86_64.rpm rhel-server-7.4-x86_64-
dvd.iso
mysql-commercial-libs-8.0.21-1.1.el7.x86_64.rpm V999317-01.zip
mysql-commercial-libs-compat-8.0.21-1.1.el7.x86_64.rpm V999535-01.zip
[root@niska media]# cd /mnt/disc/
[root@niska disc]# ls
addons EULA GPL isolinux media.repo repodata RPM-
GPG-KEY-redhat-release
EFI extra_files.json images LiveOS Packages RPM-GPG-KEY-redhat-beta
TRANS.TBL
[root@niska disc]# cd
[root@niska ~]# history
1 ifconfig
2 dhclient enp0s3
3 dhclient enp0s8
4 ifconfig
5 service network restart
6 ifconfig
7 dhclient enp0s8
8 reboot now
9 cd /media
10 ls
11 unzip --help
12 cd /etc/yum.repos.d
13 ls
14 yum repolis
15 yum repolist
16 wget --help
17 cd /media
18 ls
19 unzip V999317-01.zip
20 ls
21 yum install mysql-community-{server,client,common,libs}-*
22 yum repolist all
23 subscription-manager repos --enable
24 rpm -Ivh mysql-commercial-devel-8.0.21-1.1.el7.x86_64.rpm
25 rpm -Uvh mysql-commercial-devel-8.0.21-1.1.el7.x86_64.rpm
26 rpm -Uvh mysql-commercial-libs-8.0.21-1.1.el7.x86_64.rpm
27 subscription-manager repos --enable /etc/yum.repos.d/redhat.repo
28 ls /etc/yum.repos.d/redhat.repo
29 subscription-manager repos --list
30 rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
31 mkdir -p /mnt/disc
32 mount /dev/sr0 /mnt/dsc
33 mount /dev/sr0 /mnt/disc
34 mkdir -p /mnt/disc
35*
36 mount /dev/sr0 /mnt/dsc
37 cd /mnt/disc
38 mount -o loop /media/rhel-server-7.4-x86_64-dvd.iso
39 cd /media
40 mount -o loop /media/rhel-server-7.4-x86_64-dvd.iso /mnt/disc
41 mount -o loop rhel-server-7.4-x86_64-dvd.iso /mnt/disc
42 cp /mnt/disc/media.repo /etc/yum.repos.d/rhel17dvd.repo
43 chmod 644 /etc/yum.repos.d/rhel17dvd.repo
44 vi /etc/yum.repos.d/rhel7dvd.repo
45 mount -o loop rhel-server-7.4-x86_64-dvd.iso /mnt/disc
46 vi /etc/yum/repos.d/rhel7dvd.repo
47 vi /etc/yum.repos.d/rhel7dvd.repo
48 yum clean all
49 vi /etc/yum.repos.d/rhel7dvd.repo
50 yum clean all
51 yum repolist enabled
52 yum update
53*
54 yum install net-tools
55 mount -o loop rhel-server-7.4-x86_64-dvd.iso /mnt/disc
56 yum install perl
57 yum clean all
58 yum repolist enabled
59 yum update
60 yum install perl
61 ls
62 cd /mnt/disc/
63 ls
64 cd
65 history
[root@niska ~]#
[root@niska ~]#
[root@niska ~]# yum install perl
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Repository InstallMedia is listed more than once in the configuration
Nothing to do
[root@niska ~]# vi /etc/yum.repos.d/rhel7dvd.repo
[root@niska ~]#
[root@niska ~]#
[root@niska ~]# subscription-manager repos --enable
Usage: subscription-manager repos [OPTIONS]

subscription-manager: error: --enable option requires an argument


[root@niska ~]#
[root@niska ~]#
[root@niska ~]# yum install perl
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Repository InstallMedia is listed more than once in the configuration
Nothing to do
[root@niska ~]#

You might also like