A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Yum show every available version of a package

yum --showduplicates list [package]

Should be called --all-versions instead.

Quickly use a webserver to serve a local directory

Steps:
  • sudo yum install lighttpd
  • # Create a file containing:

    server.document-root = "/path/to/your/directory/here/" 
    
    server.port = 3000
    
    mimetype.assign = (
      ".html" => "text/html", 
      ".txt" => "text/plain",
      ".jpg" => "image/jpeg",
      ".png" => "image/png" 
    )
    
    
  • lighttpd -t -f lighttpd.conf # check config
  • lighttpd -D -f lighttpd.conf # run webserver

(source)