View Full Version : Checking package installation
raevin
June 4th, 2008, 04:51 AM
Simple question...is it programmically possible to see if a certain package that is installed, and if so, have any pointers or something? Reason being is I want to write an automatic PHP install program, and I want it to check to see if the package needed for a certain feature (like libxml2 for xml support) is installed or not.
Vadi
June 4th, 2008, 03:06 PM
I think "apt-cache showpkg" will help you. It says "W: Unable to locate package <name>" if it can't find one.
raevin
June 4th, 2008, 03:18 PM
I think "apt-cache showpkg" will help you. It says "W: Unable to locate package <name>" if it can't find one.
Thanks.! :D Seems to be rather what I'm looking for. I'll work with that and see what I can come up with.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.