Skip to content

Instantly share code, notes, and snippets.

@phpdave
Last active January 24, 2019 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdave/3162b96ed8fc613b078190b8f648faba to your computer and use it in GitHub Desktop.
Save phpdave/3162b96ed8fc613b078190b8f648faba to your computer and use it in GitHub Desktop.
Instalingl Yum on IBM i
#1. Download the entire directory at ftp://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo
#2. Upload the entire directoy to IBM i ifs
#3. Change the baseurl in /QOpenSys/etc/yum/repos.d/ibm.repo to point to ifs directory
# FROM: baseurl=ftp://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo
# TO: baseurl=file:///path/to/local/repo
# EXTO: baseurl=file:///QOpenSys/etc/yum/IBMRepoLocalMirror/repo
vi /QOpenSys/etc/yum/repos.d/ibm.repo
wget ftp://public.dhe.ibm.com/software/ibmi/products/pase/rpms/bootstrap.sql
system -i "RUNSQLSTM SRCSTMF('bootstrap.sql') COMMIT(*NONE)"
ls /tmp
cat /tmp/bootstrap.log
system -i "QSH CMD('touch -C 819 /tmp/bootstrap.log; /QOpenSys/usr/bin/ksh /tmp/bootstrap.sh > /tmp/bootstrap.log 2>&1')"
ls /tmp
cat /tmp/bootstrap.log
ftp://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo/repodata/repomd.xml: [Errno 12] Timeout on ftp://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo/repodata/repomd.xml: (28, 'Connection timed out after 30031 milliseconds')
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ibm. Please verify its path and try again
@kadler
Copy link

kadler commented Jan 24, 2019

You can use http or https urls now, though the ACS installer and SQL installer still require FTP to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment