Tuesday, April 24, 2007

If you are using Redhat Linux, you are most probably using rpm or yum as your package manager. in ubuntu, you can use synaptic package manager as your package manager and thankfully it got GUI. But for those who like to learn command based package management in ubuntu, you can use apt or dpkg command.

If you already have any package with .deb extension in your computer, you can use dpkg to install it. First you have to change directory to the directory where the package is stored. Then run: -> dpkg -i namefile.debRemember you need to be superuser to do this.

Example on how to install flashplayer using dpkg from /home/oscc/Desktop/tools folder(click on the picture to see image clearly)

Tuesday, April 17, 2007

To check installed packages on you redhat machine, this command can be used:-> rpm -qaUsing this command, all packages installed will be printed to the screen. To filter the view to print only the package that you desire, use this command:-> rpm -qa | grep packagenameexample: -> rpm -qa | grep -i bindThis command can also be used: -> rpm -qa bind*

To view running processes, you can use ps command to list out the running processes.To see every process on the system: ps -e ps -ef ps -eF ps -elyTo find the process that you want to see:-> ps -e | grep nameoftheprocess

There is also another method of converting tarball to rpm instead of using rpmbuild -bb filename.spec. Using the method mentioned before requires the user to extract the tarball file first before we can use it. If we do not want to extract it first, we can use :

1. type ->rpmbuild -tb filename.tar.bz22. after the rpm file has been created; use ->rpm -Uvh filename.rpm to install it

Tuesday, April 10, 2007

This is for the Redhat, SuSE and CentOS user out there. Sometimes when you try to search for rpm packages, the only thing that you find is the source file. You create rpm file using this source file:1. save the source file(usually in tar.gz or tar.bz2 format)2. extract the files-> tar -xvzf filename.tar.gz or tar -xvjf filename.tar.bz23. open the folder of the extracted file and find .spec file4. type-> rpmbuild -bb filename.spec5. see the error and continue according to the error until you finish creating rpm files6. type-> rpm -Uvh filename.rpm to install