[How to check from which .spec file was package X built?] outdated information replaced
--- https://www.pld-linux.org/faq?rev=1286278722 +++ https://www.pld-linux.org/faq @@ -46,23 +46,11 @@ ==== How to check from which .spec file was package X built? ==== - First of all, one should check whether there exists a spec file named just like the package. If not, the name of the spec file can be found in the output of one of these commands: - - - - <file>rpm -q --changelog package package2 | grep '$Log' - # for already installed packages - - rpm -q --changelog -p package.rpm package2.rpm | grep '$Log' - # for packages available as files - </file> - One can also use a more sophisticated command (just like before, adding a "''-p''" switch after the "''--changelog''" command and giving full file names allows one to query packages from disk): - - <file>rpm -q --changelog package package2 | awk '/^\$Log:/ {spec=$2;gsub(",v$","",spec);print spec}' - </file> + ''rpm -qi package'' command will show various information about the package, including the source RPM name. You can check the + source RPM name also with ''rpm -q --queryformat '%{sourcerpm}\n' package''. The base name of the source RPM (with version and the '.src.rpm' suffix stipped) is also the name for the GIT repository and the spec file. ==== How to check which package contains a particular file? ==== If the package is installed, you can invoke ''rpm'' as shown below: Diff URL: https://www.pld-linux.org/faq?do=diff&r1=1286278722&r2=1351672629 -- This mail was generated by DokuWiki at https://www.pld-linux.org/ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
