<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Yum on it-grossniklaus.ch</title>
    <link>https://it-grossniklaus.ch/tags/yum/</link>
    <description>Recent content in Yum on it-grossniklaus.ch</description>
    <generator>Hugo</generator>
    <language>de</language>
    <atom:link href="https://it-grossniklaus.ch/tags/yum/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Alte Kernel gleich entfernen (package-cleanup --oldkernels) </title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/package-cleanup-oldkernels/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/package-cleanup-oldkernels/</guid>
      <description>&lt;h3 id=&#34;welche-kernel-haben-wir-zurzeit-installiert&#34;&gt;welche Kernel haben wir zurzeit installiert?&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;rpm -q kernel&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;falls-package-cleanup-nicht-installiert&#34;&gt;falls package-cleanup nicht installiert&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo yum install yum-utils&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;alte-kernel-entfernen&#34;&gt;alte Kernel entfernen&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo package-cleanup --oldkernels --count=2&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# in Zukunft immer automatisch entfernen&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# /etc/yum.conf&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;installonly_limit&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;m&#34;&gt;2&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>EPEL Repository</title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-epel-repo/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-epel-repo/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/&#34;&gt;http://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo yum install epel-release&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;danach z.B.:&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo yum install phpMyAdmin&#xA;sudo yum install rlwrap&#xA;&lt;/pre&gt;&#xA;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Installation Oracle-xe-11.2</title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-oracle-xe-11-2/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-oracle-xe-11-2/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;export LANG=C&#xA;sudo yum update&#xA;&#xA;# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#xA;# MATE benötigt weniger Resourcen als GNOME&#xA;sudo yum groupinstall &#34;X Window system&#34;&#xA;sudo yum install epel-release&#xA;sudo yum --enablerepo=epel -y groups install &#34;MATE Desktop&#34;&#xA;sudo systemctl set-default graphical.target&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#xA;# etwas Komfort&#xA;sudo yum install bash-completion&#xA;sudo yum install emacs mc&#xA;sudo yum install nmap wget&#xA;# sudo yum install epel-release&#xA;sudo yum install bash-completion-extras&#xA;&#xA;&#xA;sudo sh -c &#34;echo &#39;&#xA;[google-chrome]&#xA;name=google-chrome - \$basearch&#xA;baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch&#xA;enabled=1&#xA;gpgcheck=1&#xA;gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub&#xA;&#39; &gt; /etc/yum.repos.d/google-chrome.repo&#34;&#xA;&#xA;# sudo yum info google-chrome-stable&#xA;sudo yum install google-chrome-stable &#xA;&#xA;&#xA;&#xA;sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc&#xA;sudo sh -c &#39;echo -e &#34;[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc&#34; &gt; /etc/yum.repos.d/vscode.repo&#39;&#xA;yum check-update&#xA;sudo yum install code &#xA;&#xA;# für CentOS (aber nicht CERN)&#xA;# wget https://centos7.iuscommunity.org/ius-release.rpm&#xA;# rpm -Uvh ius-release.rpm&#xA;# yum install git2u&#xA;&#xA;sudo yum install git&#xA;&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#xA;# virtualbox tools&#xA;sudo yum install dkms&#xA;sudo yum install kernel-headers kernel-devel&#xA;&#xA;# virtualbox tools =&gt; use&#xA;sudo usermod --append --groups vboxsf zfi&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#xA;# OracleXE prerequisites&#xA;cat /proc/sys/kernel/shmmax&#xA;cat /proc/sys/kernel/shmall&#xA;&#xA;sudo sh -c &#39;echo -e &#34;kernel.shmmax=2147483648&#34; &gt;&gt; /etc/sysctl.conf&#39;&#xA;sudo sh -c &#39;echo -e &#34;kernel.shmall=2097152&#34;    &gt;&gt; /etc/sysctl.conf&#39;&#xA;sudo sysctl -p  /etc/sysctl.conf&#xA;&#xA;&#xA;# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#xA;# swap (file)&#xA;sudo mkdir /var/swap/&#xA;#sudo dd if=/dev/zero of=/var/swap/swapfile bs=1024 count=524288&#xA;sudo dd if=/dev/zero of=/var/swap/swapfile bs=1024 count=2097152&#xA;sudo chmod 600 /var/swap/swapfile&#xA;sudo mkswap    /var/swap/swapfile&#xA;sudo swapon    /var/swap/swapfile&#xA;&#xA;sudo sh -c &#39;echo -e &#34;/var/swap/swapfile  swap swap  pri=1000 0 0&#34; &gt;&gt; /etc/fstab&#39;&#xA;sudo swapon&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo yum install libaio bc unzip flex net-tools &#xA;unzip -q oracle-xe-11.2.0-1.0.x86_64.rpm.zip&#xA;sudo rpm -ivh Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm&#xA;sudo /etc/init.d/oracle-xe configure&#xA;sudo usermod --append --groups dba zfi&#xA;rm -rf Disk1/&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;cd /u01/app/oracle/product/11.2.0/xe/bin&#xA;. ./oracle_env.sh&#xA;. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh&#xA;sqlplus /nolog&#xA;exit&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sqlplus / as sysdba&#xA;ALTER SYSTEM SET MEMORY_TARGET     = 800M SCOPE=spfile;&#xA;ALTER SYSTEM SET MEMORY_MAX_TARGET = 930M SCOPE=spfile;&#xA;ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;&#xA;&#xA;startup force&#xA;show parameter target&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;unzip apex_18.1.zip&#xA;sudo mv apex/ /opt/&#xA;&#xA;cd /opt/apex&#xA;sqlplus / as sysdba&#xA;@/u01/app/oracle/product/11.2.0/xe/apex/apxremov.sql&#xA;exit&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sqlplus / as sysdba&#xA;@apexins SYSAUX SYSAUX TEMP /i/&#xA;exit&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sqlplus / as sysdba&#xA;@apex_epg_config.sql /opt&#xA;exit&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sqlplus / as sysdba&#xA;@apxchpwd&#xA;ADMIN&#xA;myPassword&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sqlplus / as sysdba&#xA;SELECT version FROM dba_registry where comp_id=&#39;APEX&#39;;&#xA;exit&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;# The structure of the link to the Application Express administration services is as follows:&#xA;# http://host:port/pls/apex/apex_admin (Oracle HTTP Server with mod_plsql)&#xA;# http://host:port/apex/apex_admin     (Oracle XML DB HTTP listener with the embedded PL/SQL gateway)&#xA;# http://host:port/apex/apex_admin     (Oracle REST Data Services)&#xA;#  &#xA;# The structure of the link to the Application Express development interface is as follows:&#xA;# http://host:port/pls/apex (Oracle HTTP Server with mod_plsql)&#xA;# http://host:port/apex     (Oracle XML DB HTTP listener with the embedded PL/SQL gateway)&#xA;# http://host:port/apex     (Oracle REST Data Services)&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sqlplus / as sysdba&#xA;EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);&#xA;exit&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;# https://tecadmin.net/install-and-configure-haproxy-on-centos/&#xA;sudo yum install haproxy&#xA;sudo mkdir /etc/haproxy/ssl&#xA;sudo openssl req -x509 -nodes -days 3000 -newkey rsa:2048 -keyout /etc/haproxy/ssl/server.key -out /etc/haproxy/ssl/server.crt&#xA;sudo sh -c &#39;cat  /etc/haproxy/ssl/server.key /etc/haproxy/ssl/server.crt &gt;  /etc/haproxy/ssl/server.pem&#39;&#xA;&#xA;# neues haproxy.cfg&#xA;haproxy -c -f /etc/haproxy/haproxy.cfg&#xA;&#xA;sudo emacs /etc/rsyslog.conf&#xA;$ModLoad imudp&#xA;$UDPServerRun 514&#xA;$UDPServerAddress 127.0.0.1&#xA;&#xA;sudo emacs /etc/rsyslog.d/haproxy.conf&#xA;local2.*    /var/log/haproxy.log&#xA;&#xA;# chkconfig haproxy on&#xA;systemctl enable haproxy&#xA;systemctl start haproxy&#xA;&#xA;service rsyslog restart&#xA;service haproxy restart&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;# sqldeveloper benötigt javaFX =&gt; openJDK geht nicht mehr (für CentOS)&#xA;sudo rpm -Uvh jdk-8u172-linux-x64.rpm&#xA;sudo rpm -Uvh sqldeveloper-18.2.0.183.1748-1.noarch.rpm&#xA;sudo rpm -Uvh datamodeler-18.2.0.179.0756-1.noarch.rpm&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sqldeveloper&#xA;# =&gt; /usr/java/default&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;unzip sqlcl-18.2.0.zip &#xA;sudo mv sqlcl /opt/&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>IUS Community Project</title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/centos/add_repo/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/centos/add_repo/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;&#xA;&lt;p&gt;Durch das Einbinden von &amp;ldquo;Third Party Repositories&amp;rdquo; kann ein System&#xA;gefährdet werden:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;was rechtfertigt das Vertrauen?&lt;/li&gt;&#xA;&lt;li&gt;welche Software wird ausgetascht?&lt;/li&gt;&#xA;&lt;li&gt;ist der entstehende &amp;ldquo;Mix&amp;rdquo; wirklich zueinander kompatibel?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Ein Projekt scheint mir die naheliegenden Bedenken besonders ernst zu&#xA;nehmen:&lt;/p&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;p&gt;Sicher wird man ein zertifiziertes produktives System (RHES) nicht&#xA;gefährden wollen - aber es kann sinnvoll sein ein CentOS basiertes&#xA;System &amp;ldquo;Cherry Picking&amp;rdquo;-artig mit neueren Software-Komponenten zu&#xA;versehen.&lt;/p&gt;</description>
    </item>
    <item>
      <title>mariadb</title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-mariadb/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-mariadb/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo yum install mariadb-server mariadb&#xA;sudo systemctl start mariadb.service&#xA;sudo systemctl enable mariadb.service&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo yum install mysql-connector-java&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>VirtualBox Guest Additions</title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-virtualbox-guest-additions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-virtualbox-guest-additions/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo yum install epel-release&#xA;sudo yum install dkms&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h1 id=&#34;virtualbox-guest-additions-installieren&#34;&gt;VirtualBox Guest Additions installieren&lt;/h1&gt;</description>
    </item>
    <item>
      <title>yum groups</title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-yum-groups/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/install-yum-groups/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;yum update&#xA;yum grouplist&#xA;yum groupinstall &#34;GNOME-Desktop&#34;&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;export LANG=C&#xA;yum groups list&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;Available environment groups:&#xA;   Minimal Install&#xA;   Compute Node&#xA;   Infrastructure Server&#xA;   File and Print Server&#xA;   Basic Web Server&#xA;   Virtualization Host&#xA;   Server with GUI&#xA;   GNOME Desktop&#xA;   KDE Plasma Workspaces&#xA;   Development and Creative Workstation&#xA;&#xA;Available Groups:&#xA;   Compatibility Libraries&#xA;   Console Internet Tools&#xA;   Development Tools&#xA;   Graphical Administration Tools&#xA;   Legacy UNIX Compatibility&#xA;   Scientific Support&#xA;   Security Tools&#xA;   Smart Card Support&#xA;   System Administration Tools&#xA;   System Management&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;yum groupinstall &#34;GNOME Desktop&#34;&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>yum repolist</title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/yum-repolist/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/centos/yum-repolist/</guid>
      <description>&lt;p&gt;Wir wollen sehen, aus welchen Repositories ein RHEL/CentOS basiertes&#xA;System die Software bezieht:&lt;/p&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;ls -la /etc/yum.repos.d/&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;-rw-r--r--.   1 root root  1664 17. Mai  15:53 CentOS-Base.repo&#xA;-rw-r--r--.   1 root root  1309 17. Mai  15:53 CentOS-CR.repo&#xA;-rw-r--r--.   1 root root   649 17. Mai  15:53 CentOS-Debuginfo.repo&#xA;-rw-r--r--.   1 root root   630 17. Mai  15:53 CentOS-Media.repo&#xA;-rw-r--r--.   1 root root  1331 17. Mai  15:53 CentOS-Sources.repo&#xA;-rw-r--r--.   1 root root  4768 17. Mai  15:53 CentOS-Vault.repo&#xA;-rw-r--r--.   1 root root   314 17. Mai  15:53 CentOS-fasttrack.repo&#xA;-rw-r--r--.   1 root root  1050  2. Okt  2017  epel-testing.repo&#xA;-rw-r--r--.   1 root root   951  2. Okt  2017  epel.repo&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Klar kann man nun jedes Repo-File betrachten, aber es gib einen &lt;code&gt;yum&lt;/code&gt; Befehl&#xA;hierzu:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
