if you want to open any document with the default document handler from the bash prompt or command prompt in linux then the simplest way to do that is use \”xdg-open\”.
This can also be used in bash scripts to allow users to select which document to open without worrying about if a particular application is installed or not. Example could be where you have list of documents in the current directory (same kind or of different format.) and you want the user to select the document. In such a scenario you can take the user input for the filename and user \”xdg-open filename\” to open the file irrespective of the file type or worrying about if xpdf is installed or abiword is installed or not.
Ever happened to you that you downloaded and installed a rpm and then deleted the package? If your answer is yes, then there is a solution.
Come to the fairyland of rpmrebuild. Create the rpm from the installed files and give a new number if required.
sudo yum install rpmrebuild
Simplest use is to
rpmrebuild <package name>
but I personally like the one mentioned below:
rpmrebuild -R -v -P –pug-from-db <package name>
For people who have used yum on Fedora, you must have seen that couple of packages that you require are on Livna and couple of them on DAG and some others on FreshRPMs and Dribble. And for those of you, who have tried to install the packages from all these repositories, I know it is difficult. The repo\’s never worked too well together.
So finallly there is a nice solution to all these problems, RPMFusion is the solution. This is a effort to merge the repo in all the four above mentioned repo. just now installed the repo and am updating my system and definately hope to get a lot lesser problems now. 🙂
So HAPPY installing new software and updates.