Update a solaris 11 installation with pkg and behind a proxy

Installing solaris 11 in a KVM-Machine on Fedora 18 is no problem, if you have the iso-Image available

After rebooting and trying to install some packages and you are protected by a firewall, pkg times out.

To let the pkg command talk to a proxy for getting the packages from the IPS-Repo, you have to
set an environment variable.

https_proxy=https://<IP of proxy>:<Port>
http_proxy=http://<IP of proxy>:<Port>
export https_proxy
export http_proxy
pkg install developer/gcc-45

( source )