bash function for rpm whatprovides
Sometimes some simple one-liner function can save you a lot of time, like-
wps () { rpm -q --whatprovides $(which $1 ) } # ---------- end of function wps ----------
Sometimes some simple one-liner function can save you a lot of time, like-
wps () { rpm -q --whatprovides $(which $1 ) } # ---------- end of function wps ----------
Last article I talked about tora installation from the sources, but if that is too much for you then you can use this one liner:
rpm -ivh "http://amit-agarwal.co.in/mystuff/tora-2.1.3-1.fc16.i686.rpm"
But if you like the hard way out, then you can always try this.
For this tip, you would need to setup the rpm-shere repository. You can get the information here. Once you have done that you need to install the cdu package with the following command:
sudo yum install cdu
And then you can use “cdu” to view the disk usage in all beautiful colors with the command:
cdu
and the output looks like this:
Here is one repository that you can add to your Fedora to give it a few more hundred packages:
cat >/etc/yum.repos.d/rpm-sphere.repo <<EOF [rpm-sphere] name=RPM Sphere baseurl=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_16/ gpgkey=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_16/repodata/repomd.xml.key enabled=1 gpgcheck=1 EOF
1
|