{"id":2572,"date":"2008-12-11T14:36:00","date_gmt":"2008-12-11T14:36:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2008\/12\/11\/installing-solaris-packages-as-non-root\/"},"modified":"2008-12-11T14:36:00","modified_gmt":"2008-12-11T14:36:00","slug":"installing-solaris-packages-as-non-root","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2008\/12\/11\/installing-solaris-packages-as-non-root\/","title":{"rendered":"installing Solaris packages as non-root"},"content":{"rendered":"<p>\t\t\t\tDo you know, where you can get ready made freeware packages to run on Solaris from?<br \/>\nI got a few from <a href=\"http:\/\/www.sunfreeware.com\/\">sunfreeware.com<\/a> recently.<\/p>\n<p>Do you think, you can only install Solaris packages as <i>root<\/i>?<br \/>\nOf course, it&#8217;s simpler and just better to do so,<br \/>\nbut what if you can&#8217;t?<\/p>\n<p>Solaris packages from sunfreeware.com come as gzipped files,<br \/>\nand I use <i>pkgtrans<\/i> in order to get <i>pkginfo<\/i>, <i>pkgmap<\/i>, and a subdirectory <i>reloc<\/i> created below my $HOME\/PACKAGES\/ .<br \/>\n<i>pkgmap<\/i> is described in the manual page <i>protype(4)<\/i> ,<br \/>\nit defines details like file mode, symlinks, and much more.<br \/>\nWithin that subdirectory <i>reloc<\/i> you find the package&#8217;s executables, library files and man pages.<\/p>\n<p>The sys admin would use <i>pkgadd<\/i> for installing a package,<br \/>\nbut <i>pkgadd<\/i> only allows for execution by root,<br \/>\nso I developed a shell script (<i>JHread_pkgmap.sh<\/i>) imitating <i>pkgadd<\/i>.<br \/>\nIt reads <i>pkgmap<\/i> and does jobs like adopting the file mode specified within <i>pkgmap<\/i>.<br \/>\nI don&#8217;t plan on implementing <i>pkgadd<\/i>&#8216;s full functionality,<br \/>\nbut just that subset, that is seriously required in order to get the packages installed, that I really want to install.<\/p>\n<p>Of course, executables and libraries, that depend on hard-wired absolute file or directory pathnames will experience a little grief.<br \/>\nBut most of the utilities, I am working with, don&#8217;t complain about such problems.<\/p>\n<p>Now e.g. I am able to download and install ready made packages (wget, curl, \u2026); and you know, how much nicer it can be to use\u00a0wget and curl than downloading\u00a0within a web browser.<\/p>\n<p><span style=\"line-height: 1.5\">Update 2013-01-02:<br \/>\n<\/span>Please find it here:\u00a0<a title=\"http:\/\/Jochen.Hayek.name\/Computers\/Software\/Operating_Systems\/Unix\/Shell\/JHread_pkgmap.sh\" href=\"http:\/\/Jochen.Hayek.name\/Computers\/Software\/Operating_Systems\/Unix\/Shell\/JHread_pkgmap.sh\">http:\/\/Jochen.Hayek.name\/Computers\/Software\/Operating_Systems\/Unix\/Shell\/JHread_pkgmap.sh<\/a>\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you know, where you can get ready made freeware packages to run on Solaris from? I got a few from sunfreeware.com recently. Do you think, you can only install Solaris packages as root? Of course, it&#8217;s simpler and just better to do so, but what if you can&#8217;t? Solaris packages from sunfreeware.com come as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-2572","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-Fu","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=2572"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2572\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=2572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=2572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=2572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}