I have a question about the following command:
apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e 'java-common'
Owing to my limited IT knowledge, am I right to say that the (ia32-) in the above command refers to 32-bit software? If it is, then I assume that the above command is for 32-bit installed OS.
However I installed a 64-bit OS.
What is the correct parameter for 64-bit software? Is it (amd64-) or (ia-64) or (x86_64-)?
Any expert help is much appreciated.
ia32-
won't represent a 32 bit software.It also looks for the package name starting withia32-
.The only package that starts withia32-
isia32-libs
– Avinash Raj Mar 24 '14 at 14:37^
- starting,?
- optional ,|
- OR – Avinash Raj Mar 24 '14 at 14:44|
means "OR" only within the regular expressions above, between the various commands it is a pipe. – terdon Mar 24 '14 at 16:04