sitewide unix software installation
play

Sitewide Unix Software Installation Russ Allbery March 20, 2004 - PowerPoint PPT Presentation

Stanford University March 20, 2004 1 Sitewide Unix Software Installation Russ Allbery March 20, 2004 Russ Allbery (rra@stanford.edu) Stanford University March 20, 2004 2 Introduction Manage 550 packages for seven architectures (alpha


  1. Stanford University March 20, 2004 1 Sitewide Unix Software Installation Russ Allbery March 20, 2004 Russ Allbery (rra@stanford.edu)

  2. Stanford University March 20, 2004 2 Introduction • Manage 550 packages for seven architectures (alpha dux40, hp ux110, i386 linux24, rs aix43, sgi 65, sun4x 58, sun4x 59). • Both free software (most of it) and licensed software, including a licensed software tree for only one Unix cluster. • Three trees: pubsw for campus-wide software, newsw for software testing, and sweet for licensed software for one Unix cluster. • Moving away from this towards Linux and using the software already packaged for Debian, but something like this will likely still be needed for some time (and possibly forever for some packages, such as licensed software). • Method originally developed by Larry Schwimmer. Russ Allbery (rra@stanford.edu)

  3. Stanford University March 20, 2004 3 Contents • Basic layout concepts and @sys • Volume naming and release management • Compiling the software • Installing the software • Handling software with its own layout • Other interesting problems Russ Allbery (rra@stanford.edu)

  4. Stanford University March 20, 2004 4 Basic Layout • How @sys works and why it’s important • Central area organized by software package • @sys and share directories inside each package directory • Organized to match the standard file system layout, in each software package directory • Symbolic link trees for each platform into package • package an additional mount point for central area • Single /usr/pubsw to /afs/ir/systems/@sys/pubsw link on each client Russ Allbery (rra@stanford.edu)

  5. Stanford University March 20, 2004 5 Naming and Release Management • Everything must have a version number • Every package gets its own volume, no matter how small • Packages are upgraded just by changing the symlinks, making it easy to back out of an upgrade • Use frak to check for changes before release • Can add a new minor platform by copying the link tree Russ Allbery (rra@stanford.edu)

  6. Stanford University March 20, 2004 6 Freezing a Platform • Why you would want to do a freeze • Copying the entire software pool • Copying the link trees (not actually necessary) • Can keep the frozen platform around as long as you want Russ Allbery (rra@stanford.edu)

  7. Stanford University March 20, 2004 7 Compiling • Software compiled to look in /usr/pubsw for everything • Shared vs. static libraries and library versioning • Making sure shared libraries are found (LD RUN PATH) • Be careful to compile on the oldest system • Automating the compilation process ( wrap ) • Special case: Perl and site module directories Russ Allbery (rra@stanford.edu)

  8. Stanford University March 20, 2004 8 Installing • Two regular choices: make prefix= vs. make DESTDIR= • libtool and library or binary relinking • @sys directory vs. share directory • Testing out of the read/write volumes • Testing using the separate newsw tree (and when you can’t) • ACLs: public, site-licensed, only some machines? • Be careful of inodes and shared libraries • share vs. lib and how much you want to fiddle Russ Allbery (rra@stanford.edu)

  9. Stanford University March 20, 2004 9 Packages with a Special Layout • The basic idea of /usr/pubsw/apps • Examples: Oracle, most licensed software, Java JDK • Still create symlinks for particular binaries • Alternative: use wrapper scripts • It’s possible to edit paths inside binaries Russ Allbery (rra@stanford.edu)

  10. Stanford University March 20, 2004 10 Other Problems • When you might need to change the @sys value for a platform • Displaying information about installed packages • Reverting changes to the same version ( frak ) • man page indexes and info dir files • X libraries: don’t do this yourself • Where you want to avoid doing this, and the future of Linux, BSD ports, and other alternatives Russ Allbery (rra@stanford.edu)

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend