Install/Test/Uninstall - Ubuntu/Debian: Difference between revisions
From NEOSYS Dev Wiki
Jump to navigationJump to search
No edit summary |
|||
| Line 42: | Line 42: | ||
#find all the examples of exodus programming in various languages (some may need unzipping) | #find all the examples of exodus programming in various languages (some may need unzipping) | ||
find /usr/share|grep exodus | find /usr/share|grep exodus | ||
/usr/share/doc/packages/libexodus-python/examples/test.py | |||
/usr/share/doc/packages/libexodus-python/examples/testsort.py | |||
/usr/share/doc/packages/libexodus-perl/examples/test.pl | |||
</pre> | </pre> | ||
Revision as of 22:12, 9 July 2011
Add Repository
#export DISTRO=xUbuntu_11.04 export DISTRO=xUbuntu_10.04 sudo su -c "echo 'deb http://download.opensuse.org/repositories/home:/neosys:/exodus/$DISTRO ./' > /etc/apt/sources.list.d/exodus.list"
Install
#installs exodus-cli, libexodus-perl, libexodus-python, libpgexodus and postgresql
sudo apt-get update
sudo apt-get install exodus
#additional options
sudo apt-get install libexodus-php \
libexodus-java \
libexodus-csharp \
libexodus-c++
Testing
testsort
listfiles
#python one liner to write a multivalue database record (after creating xyzfile)
createfile xyzfile
python -c 'from exodus import *;print var("abc123").write("xyzfile","key123")'
#perl one liner to read back the record
#the syntax is long winded because exodus isnt properly implemented in perl yet
perl -e 'use exo;$record=new exo::var(""); $filename=new exo::var("xyzfile"); $key=new exo::var("key123"); \
print $record->read($filename,$key);print $record,"\n"'
list xyzfile
deletefile xyzfile
#find all the examples of exodus programming in various languages (some may need unzipping)
find /usr/share|grep exodus
/usr/share/doc/packages/libexodus-python/examples/test.py
/usr/share/doc/packages/libexodus-python/examples/testsort.py
/usr/share/doc/packages/libexodus-perl/examples/test.pl
Upgrade
sudo apt-get update sudo apt-get upgrade
Uninstall
sudo apt-get autoremove exodus.*
Remove Repository
sudo rm -f /etc/apt/sources.list.d/exodus*.list sudo apt-key del E7815451 sudo apt-get update