Instructions on how to do this are in the Installation and Maintenance Guide. This is true of both stable and development versions. By far best way to get, maintain and upgrade Bugzilla is as a checkout from the appropriate branch of our source code control system.