How to Update/Install mercurial on CentOS 5.5

 

Assumption : Your CentOS server is NOT connected to internet but is available on internal network

Check your current mercurial version ‘hg –version’

Step 1: Goto http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/

Search for Latest release , latest as of now is :

http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/mercurial-1.9.2-1.el5.rf.x86_64.rpm

 

Step 2: Download this repo on Machine with access to internet

i have ubuntu box :

wget “http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/mercurial-1.9.2-1.el5.rf.x86_64.rpm”

Step 3: Transfer to CentOS

scp mercurial-1.9.2-1.el5.rf.x86_64.rpm poorak@centOSBox:~/.

Step 4: go to cd ~/

and Finally Install using yum or rpm

sudo yum install mercurial-1.9.2-1.el5.rf.x86_64.rpm

Sudo rpm -i mercurial-1.9.2-1.el5.rf.x86_64.rpm

and you are Done !

Ref: http://mercurial.selenic.com/wiki/Download#Linux_.28.rpm.29

Steps to Install SchemaSpy 5.0 on Ubuntu 11.10

Step 1: Download dependencies :
1) Graphviz – Instructions Here
2) ConnectorJ              –  Instructions Here
3) Java – JDK, JRE      –  Instructions Here

Step 2: Download SchemaSpy 5.0

wget “http://sourceforge.net/projects/schemaspy/files/schemaspy/SchemaSpy%205.0.0/schemaSpy_5.0.0.jar/download” -O schemaSpy_5.0.0.jar

Step 3: Run schemaSpy


$ java -jar schemaSpy_5.0.0.jar

-t mysql  -o output_folder

-host localhost

-db DB_Name

-u USER

-p PASSWORD

-dp Connector-J/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar

 

/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar
Using database properties:
  [schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/mysql.properties
Gathering schema details.....................................(7sec)
Writing/graphing summary............(1sec)
Writing/diagramming details..................................(1sec)
Wrote relationship details of 34 tables/views to directory
'output_folder' in 10 seconds.
View the results by opening output_folder/index.html
Step 4: Create a symlink in www directory
cd /var/www
sudo ln -s /path/to/output_folder DB_Name

Remember apache must be able to follow symlinks and must have atleast read+execute perms.

Step 5: Point your browser to : localhost/DB_Name

…and you should see what you DB looks like schema wise.


References: