Install YUI Compressor on Ubuntu 12.04 (server too) Precise Pandolin

YUI Compressor is a tool for compressing data transmission between a website and the client that reduces time to display a website.

Having that said, I was most pleased and excited to discover that you can install the YUI compressor quickly and instantly through ubuntu.

There’s a launchpad page here:
https://launchpad.net/ubuntu/+source/yui-compressor

Regardless, you can just install it on ubuntu with one easy command:

sudo apt-get install yui-compressor

And pow! You can quickly use yui compressor! With this in mind you can integrate this easily with Phing, jenkins, or even just get down and dirty and write your own script to automate the process.

P.s. the PBS Designer blog has a great blog post about this: Using a bash script to minify and combine JavaScripts