Results 1 to 10 of 11
which command should I use? Can give an explicit example or links to specific examples? Thanks,...
- 01-20-2012 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
how to search whether a software is installed?
which command should I use? Can give an explicit example or links to specific examples? Thanks,
- 01-20-2012 #2
In Debian or Ubuntu
or look in synaptic package manager. You did not mention what distro you are using by the way.Code:@biker:~$ apt-cache policy fluxbox fluxbox: Installed: 1.3.2-2 Candidate: 1.3.2-2 Version table: *** 1.3.2-2 0 901 http://ftp.us.debian.org/debian/ testing/main i386 Packages 100 /var/lib/dpkg/statusLinux Registered User # 475019
Lead,Follow, or get the heck out of the way
AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
Open CourseWare for Linux Geeks
- 01-20-2012 #3forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,095
oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 01-20-2012 #4Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
Thanks for your quick response. Really a newbie here .... linux distribution is CentOS, but general methods to other distribution can also be tried here
- 01-20-2012 #5forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,095
For the Red Hat derivatives such as CentOS, you can try the following commands:
...or to see all packages:Code:rpm -qa | grep package_name* yum list installed package_name
One or more of those should work for you. Run man yum or man rpm for more details on using the commands.Code:rpm -qa yum list installed
Which package are you trying to determine if it's installed?oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 01-20-2012 #6Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
- 01-20-2012 #7You can also define the details you want to seeCode:
rpm -qvl libjpeg
e.g:
This is just an example, there are a lot more tags:Code:rpm -q --queryformat "%{NAME} %{SIZE}\n" libjpeg
rpm: Query formatsYou must always face the curtain with a bow.
- 01-20-2012 #8Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
Thanks for all your response. I should have googled on my last question first. But here is something I cannot find answers online. I need to locate a specific file --- jpeglib.h (the former are just efforts to locate this file, but failed). I tried "find -name jpeglib.h" but it does not work as it does not get permission to access many locations. So, is there any linux command which could help me to find out possible existence and access the location of this file without triggering alarm on permission stuff? This file should be common library to be related to jpeg graph format, thus accessing this file is fully legal, but I guess that the stupid adminstrator just made find not work here.
- 01-20-2012 #9
Here is the deal:
Take back the "stupid administrator"
and I tell you where that file is, how to find, how to get it, and why the admin did not "...just made find not work here."
You must always face the curtain with a bow.
- 01-20-2012 #10Just Joined!
- Join Date
- Nov 2011
- Posts
- 13
good joking, but does hint me a way out. I have shooted the administrator an email and see how he respond. He is terribly busy, but I think he can locate the file instantly if he gets on doing it.


Reply With Quote
