Munki pkg: Reposado installer

1 minute read

I’m running reposado from a Windows (IIS) server, and I’m not able to run repo_sync or repoutil on the server itself. But I can mount the reposado share on a client. The code below installs the latest version of reposado using git. The pkginfo file needs another pkg that installs git on the machine and depends on that. It also configures reposado by writing the pref file. You’ll have to change

  • METADIR=/tmp/SU/metadata
  • UPDATEDIR=/tmp/SU/www

to your own paths in the below script

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">


echo 'Cloning reposado'
cd /usr/local/
git clone

echo 'Setting prefs'
echo '&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ""&gt;
&lt;plist version="1.0"&gt;
&lt;/plist&gt;' &gt; /usr/local/reposado/code/preferences.plist

echo 'Adding reposado to search path'
echo /usr/local/reposado/code &gt; /etc/paths.d/reposado

exit 0</string>
rm -rf "/usr/local/reposado"
rm "/etc/paths.d/reposado"