LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to uninstall libasound2-dev package came with DB2 express-c (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-uninstall-libasound2-dev-package-came-with-db2-express-c-859343/)

poojithas 01-28-2011 10:46 PM

how to uninstall libasound2-dev package came with DB2 express-c
 
I have installed db2 express-c on Ubuntu 10.04 server using apt-get; the installation is successful but I noticed that libasound2-dev package has been installed along with db2.

I don't want this ALSA sound package, when I tried to remove it by "apt-get remove" it was trying to uninstall DB2 as well as there is a dependency.

So, how do I remove ALSA package without removing DB2 ?

PS: Also, db2 installed X11 packages like libx11-dev, libxproto-core-dev etc., which are also not need for me as it is a sever OS.

andrewthomas 01-29-2011 12:42 AM

What repo did you install it from?

What is the exact name of the package?

db2exc?

If you really want the package, you will be best served by downloading the source straight from IBM and building it yourself.

http://www-01.ibm.com/software/data/.../download.html

poojithas 01-29-2011 05:33 AM

I installed the DB2 as per the IBM people suggession Link: http://www.db2teamblog.com/2010/09/d...untu-1004.html

Basically using bellow command
$ sudo apt-get install db2exc

---------- Post added 01-29-11 at 05:03 PM ----------

I installed the DB2 as per the IBM people suggession Link: http://www.db2teamblog.com/2010/09/d...untu-1004.html

Basically using bellow command
$ sudo apt-get install db2exc

andrewthomas 01-30-2011 03:12 PM

Your problem is with the debian/control file
Code:

--- db2exc-amd64-9.7.2.orig/debian/control
+++ db2exc-amd64-9.7.2/debian/control
@@ -1,5 +1,5 @@
 Source: db2exc-amd64
-Section: devel
+Section: partner/devel
 Priority: optional
 Maintainer: DB2 Express-C Community <askdata@ca.ibm.com>
 Build-Depends: debhelper (>= 5)
@@ -7,9 +7,6 @@
 
 Package: db2exc
 Architecture: amd64
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, bc, ksh, libaio1, libx11-dev, libasound2-dev

If you want to build it without libx11-dev and libasound2-dev then you would need to download the source for the version that you want to use from one of the following links.

http://archive.canonical.com/ubuntu/.../db2exc-amd64/
http://archive.canonical.com/ubuntu/...tner/d/db2exc/

Edit the debian/control file to remove unwanted depends and build it yourself.

EDIT: as an alternative, you could also try to remove libasound2-dev ignoring the dependencies with

Code:

sudo dpkg -r --force-depends libasound2-dev
although I'm not sure that would be the best route to go.

poojithas 01-30-2011 11:46 PM

Thank you very much Andrew,
I will try your second solution first and see if no problems arise, else the first method, I'm sure it will work.


All times are GMT -5. The time now is 12:11 AM.