yum list updates
yum --showduplicates list httpd | expand
yum --exclude update package-name

Install Xwiki under CentOS7

Apache Tomcat Versions (matching with dependancies)

wget https://mirror-hk.koddos.net/apache/tomcat/tomcat-9/v9.0.41/bin/apache-tomcat-9.0.41.tar.gz

sudo tar zxvf ./apache-tomcat-9.0.41.tar.gz -C /opt/
vi /etc/profile
export CATALINA_HOME=/opt/apache-tomcat-9.0.41

export PATH=$PATH:$CATALINA_HOME/bin

source /etc/profile

catalina.sh version 

# Install the repository RPM:

sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

# Install PostgreSQL:

sudo yum install -y postgresql12-server

# Optionally initialize the database and enable automatic start:

sudo /usr/pgsql-12/bin/postgresql-12-setup initdb

sudo systemctl enable postgresql-12

sudo systemctl start postgresql-12

psql -U postgres

``````alter user postgres with password `BFT@xwiki`;

BFT@xwiki

create database xwiki;

create user xwiki with password ‘BFT@xwiki’;

GRANT ALL PRIVILEGES ON DATABASE xwiki TO xwiki;

wget https://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/platform/xwiki-platform-distribution-war/12.10.2/xwiki-platform-distribution-war-12.10.2.war

mkdir /opt/apache-tomcat-9.0.41/webapps/xwiki

unzip xwiki-platform-distribution-war-12.10.2.war -d /opt/apache-tomcat-9.0.41/webapps/xwiki

vi /opt/apache-tomcat-9.0.41/webapps/xwiki/WEB-INF/xwiki.properties

permanentDirectory = /var/lib/xwiki/data/

vi /opt/apache-tomcat-9.0.41/webapps/xwiki/WEB-INF/xwiki.cfg

xwiki.store.attachment.hint=file

xwiki.store.attachment.versioning.hint=file

xwiki.store.attachment.recyclebin.content.hint=file

mkdir /var/lib/xwiki

mkdir /var/lib/xwiki/data

cd /opt/apache-tomcat-9.0.41/webapps/xwiki/WEB-INF/lib/

https://jdbc.postgresql.org/download/postgresql-42.2.18.jar

/opt/apache-tomcat-9.0.41/bin/shutdown.sh

/opt/apache-tomcat-9.0.41/bin/startup.sh 

Ref: How to Install XWiki on CentOS 7

Tags: OS