LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2011, 11:46 PM   #1
poojithas
LQ Newbie
 
Registered: Jun 2010
Location: Chennai, India
Distribution: Ubuntu 10.04
Posts: 22

Rep: Reputation: 0
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.

Last edited by poojithas; 01-28-2011 at 11:50 PM.
 
Old 01-29-2011, 01:42 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
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
 
Old 01-29-2011, 06:33 AM   #3
poojithas
LQ Newbie
 
Registered: Jun 2010
Location: Chennai, India
Distribution: Ubuntu 10.04
Posts: 22

Original Poster
Rep: Reputation: 0
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
 
Old 01-30-2011, 04:12 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
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.

Last edited by andrewthomas; 01-30-2011 at 07:08 PM.
 
Old 01-31-2011, 12:46 AM   #5
poojithas
LQ Newbie
 
Registered: Jun 2010
Location: Chennai, India
Distribution: Ubuntu 10.04
Posts: 22

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
db2 express install problem - glibc_2.2 bandad Slackware 8 02-05-2007 11:18 AM
LXer: Migrate from MySQL or PostgreSQL to DB2 Express-C LXer Syndicated Linux News 0 06-18-2006 05:54 PM
LXer: DB2 Express: Another nail in the free database coffin? LXer Syndicated Linux News 0 02-10-2006 10:46 PM
LXer: Big Blue frees up DB2 Express-C LXer Syndicated Linux News 0 02-01-2006 03:31 AM
uninstall kde software dev package problem ephem Red Hat 1 09-12-2003 01:07 AM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration