<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Running UNIX &#187; automation</title>
	<atom:link href="http://www.runningunix.com/tag/automation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.runningunix.com</link>
	<description>UNIX/Solaris tips, tricks, and advice</description>
	<lastBuildDate>Mon, 01 Aug 2011 17:37:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Silencing/Automating Solaris Package Installs</title>
		<link>http://www.runningunix.com/2009/01/silencingautomating-solaris-package-installs/</link>
		<comments>http://www.runningunix.com/2009/01/silencingautomating-solaris-package-installs/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 05:09:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[pkgadd]]></category>

		<guid isPermaLink="false">http://www.runningunix.com/?p=156</guid>
		<description><![CDATA[If you&#8217;ve ever been faced with the chore of installing many packages across many hosts, you&#8217;ve either 1) spent all day hitting the &#8216;Y&#8217; key on your keyboard to pkgadd&#8217;s questions, 2) gotten someone else to hit the &#8216;Y&#8217; key all day, or 3) you&#8217;ve given pkgadd the proper information so it can proceed without [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever been faced with the chore of installing many packages across many hosts, you&#8217;ve either 1) spent all day hitting the &#8216;Y&#8217; key on your keyboard to pkgadd&#8217;s questions, 2) gotten someone else to hit the &#8216;Y&#8217; key all day, or 3) you&#8217;ve given pkgadd the proper information so it can proceed without your input.</p>
<p>pkgadd takes a -n argument, that tells it to operate in non-interactive mode. However, this alone will not let you install much of anything, because if the pkgadd command <em>needs</em> any input from the user, it will just exit and your package will not be installed. To give pkgadd the information to act on its own and install your package, you have to provide the -a option and specify an &#8220;installation administration file&#8221;.</p>
<p></p>
<p>This &#8220;admin&#8221; file contains all the parameters pkgadd will need to operate. The default file exists in /var/sadm/install/admin/default. Copy it to your home directory and take a look at it.</p>
<blockquote><p>
<code>mail=<br />
instance=unique<br />
partial=ask<br />
runlevel=ask<br />
idepend=ask<br />
rdepend=ask<br />
space=ask<br />
setuid=ask<br />
conflict=ask<br />
action=ask<br />
networktimeout=60<br />
networkretries=3<br />
authentication=quit<br />
keystore=/var/sadm/security<br />
proxy=<br />
basedir=default</code>
</p></blockquote>
<p>You can get information on all of the parameters in the file with:</p>
<blockquote><p><code># man -s 4 admin</code>
</p></blockquote>
<p>What I usually do, to forcefully install the packages without asking anything, is just replace all the occurences of &#8220;ask&#8221; to &#8220;nocheck&#8221;. This will take the default file, and create a new one, changing ask to nocheck.</p>
<blockquote><p>
<code># sed 's/ask/nocheck/' < /var/sadm/install/admin/default > /home/user/admin.file</code>
</p></blockquote>
<p>Now you can do your pkginstall without any questions being asked:</p>
<blockquote><p><code># pkgadd -n -a admin.file SUNWblah</code></p></blockquote>
<p>Another handy parameter in the admin file, especially when you are installing packages across multiple hosts, is the &#8220;mail&#8221; parameter. When you set this with your email, you will be notified when the package installs on each system.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.runningunix.com%2F2009%2F01%2Fsilencingautomating-solaris-package-installs%2F&amp;title=Silencing%2FAutomating%20Solaris%20Package%20Installs" id="wpa2a_2"><img src="http://www.runningunix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.runningunix.com/2009/01/silencingautomating-solaris-package-installs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

