Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (46 sloc) 1.53 KB
find command
===============
1. find / -name foo
2. find /tmp /var/tmp . $HOME -name foo
3. find . -name foo\*bar
Show all installed packages or software in Linux
==================================================
Red Hat/Fedora Core/CentOS Linux
Type the following command to get list of all installed software
# rpm -qa | less
Debian Linux
Type the following command to get list of all installed software:
# dpkg --get-selections
Ubuntu Linux
Type the following command to get list of all installed software:
# sudo dpkg --get-selections
FreeBSD
Type the following command to get list of all installed software:
# pkg_info | less
# pkg_info apache
Use pkg_version command to summarizes the versions of all installed packages:
# pkg_version | less
# pkg_version | grep 'lsof'
OpenBSD
OpenBSD also use pkg_info command to display list of all installed packages or software:
# pkg_info | less
# pkg_info apache
Web cpanel
==========
http://www.webmin.com/
Undefined symbol: xsltLibxmlVersion - Ruby XSLT and CentOS
===========================================================
yum reinstall -y libxml2 libxml2-devel libxslt libxslt-devel
ldconfig
gem uninstall libxml-ruby ruby-xslt
gem install libxml-ruby ruby-xslt
Install MongoD
==============
Import GPG Key:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
add this line to your /etc/apt/sources.list
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen
and run:
$ sudo apt-get update
$ sudo apt-get install mongodb-10gen
$ sudo gem install mongo bson bson_ext