Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

From the console, is there a way to recover the architecture of a package when it is not currently installed ? I know the name and version of the package.

share|improve this question

2 Answers 2

If you mean getting the information for a package, you can only obtain it if is still available from the APT cache, to get it from a terminal run:

apt-cache show packagename

To only show the architecture use grep

apt-cache show package_name | grep Architecture

# Or for the lazy typist
apt-cache show package_name | grep Arch
share|improve this answer

Apart that usually the name of a package includes also its architecture, e.g. in tar_1.23-2ubuntu1_amd64.deb you see that is for x86_64 (amd64), anyway you use use the command "dpkg --info ". Among various fields, there is also Architecture. E.g.

$ dpkg --info tar_1.23-2ubuntu1_amd64.deb | grep Architecture  
Architecture: amd64
share|improve this answer
    
That will not work if the package is not installed as the OP is asking. –  bodhi.zazen Feb 23 '12 at 18:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.