Skip to content

Instantly share code, notes, and snippets.

@typomedia
Forked from jperkin/gist:3436515
Last active May 30, 2016 03:42
Show Gist options
  • Save typomedia/b3f2f37f5e5733e4d90d to your computer and use it in GitHub Desktop.
Save typomedia/b3f2f37f5e5733e4d90d to your computer and use it in GitHub Desktop.
Pkgin Repository Update Script
#!/bin/sh
# Copyright 2014 Typomedia Foundation. All rights reserved.
# Released under GPL version 3.
#
# Pkgin Repo Update Script v1.0alpha
# Update repositories.conf for pkgin, and set $PKG_PATH for pkg_add
export PKG_PATH=http://pkgsrc.joyent.com/packages/SmartOS/2014Q1/x86_64/All
echo $PKG_PATH > /opt/local/etc/pkgin/repositories.conf
# Update core packages manually
pkg_add -u bootstrap-mk-files bmake
# Update everything else
pkgin update
pkgin -y full-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment