Thanks for your replies,
And this command is working fine. But now i have one more doubt... from the output, i cant understand which are all the packages is actually installed and which are not...
this is the output when i run individually;
Code:
kmr@system5:~$ dpkg -l | grep libxv1
kmr@system5:~$ dpkg -l | grep libxss1
kmr@system5:~$ dpkg -l | grep libxext6
kmr@system5:~$ dpkg -l | grep libx11-6
kmr@system5:~$ dpkg -l | grep libstdc++6
ii libstdc++6 4.2.3-2ubuntu7 The GNU Standard C++ Library v3
ii libstdc++6-4.2-dev 4.2.3-2ubuntu7 The GNU Standard C++ Library v3 (development
kmr@system5:~$ dpkg -l | grep libqt4-gui
kmr@system5:~$ dpkg -l | grep libqt4-core
kmr@system5:~$ dpkg -l | grep libgcc1
ii libgcc1 1:4.2.3-2ubuntu7 GCC support library
kmr@system5:~$ dpkg -l | grep libc6
ii libc6 2.7-10ubuntu3 GNU C Library: Shared libraries
ii libc6-dev 2.7-10ubuntu3 GNU C Library: Development Libraries and Hea
ii libc6-i686 2.7-10ubuntu3 GNU C Library: Shared libraries [i686 optimi
kmr@system5:~$ dpkg -l | grep libasound2
see this, from this i cant understand, which one among the files are installed. is there any tricky way to find out... i guess we need a script itself. if so, can anybody point to a script.
Code:
kmr@system5:~$ dpkg -l | grep -f check-depends
ii libc6 2.7-10ubuntu3 GNU C Library: Shared libraries
ii libc6-dev 2.7-10ubuntu3 GNU C Library: Development Libraries and Hea
ii libc6-i686 2.7-10ubuntu3 GNU C Library: Shared libraries [i686 optimi
ii libgcc1 1:4.2.3-2ubuntu7 GCC support library
ii libstdc++6 4.2.3-2ubuntu7 The GNU Standard C++ Library v3
ii libstdc++6-4.2-dev 4.2.3-2ubuntu7 The GNU Standard C++ Library v3 (development
kmr@system5:~$ cat check-depends
libasound2
libc6
libgcc1
libqt4-core
libqt4-gui
libstdc++6
libx11-6
libxext6
libxss1
libxv1
NOTE: i didnt get an answer why my command dpkg -l | grep `cat check-depends` didnt worked like this grep -f.
Thanks for ur help...
Bookmarks