LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-10-2011, 12:53 PM   #1
NirvanaII
Member
 
Registered: Jun 2005
Posts: 139

Rep: Reputation: 18
How do I mark mplayer for non-installation w/ apt-get/ aptitude/ dpkg?


Yes, so the story is I uninstalled mplayer w/ apt-get (and with it mplayerthumbs + mozilla-mplayer) for the purpose of running a 'make install' on an SVN version I compiled - that worked out fine. Now I want to reinstate mplayerthumbs + mozilla-mplayer, but of course in doing so, mplayer is marked as a dep. How then do I mark mplayer to be ignored using the aforementioned package managers?

Additionaly, why isn't dpkg referencing my sources list?

Code:
[stuart8.5@mepis1 ~]$ sudo dpkg -i --ignore-depends=mplayer install mplayerthumbs mozilla-mplayer
[sudo] password for stuart8.5:
dpkg: error processing install (--install):
 cannot access archive: No such file or directory
dpkg: error processing mplayerthumbs (--install):
 cannot access archive: No such file or directory
dpkg: error processing mozilla-mplayer (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 install
 mplayerthumbs
 mozilla-mplayer
 
Old 04-10-2011, 01:22 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,615
Blog Entries: 2

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
Dpkg's only purpose is to install and de-install packages. Downloading is done by apt-get/aptitude/synaptic or any other frontend for apt.
The correct way to get rid of the dependency for mplayer in my eyes is to package your build from the SVN in the correct way and then to install that package.
 
Old 04-10-2011, 05:08 PM   #3
NirvanaII
Member
 
Registered: Jun 2005
Posts: 139

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by TobiSGD View Post
The correct way to get rid of the dependency for mplayer in my eyes is to package your build from the SVN in the correct way and then to install that package.
I don't know exactly what you mean by this - or what it means in practice - but am all ears if you are willing to explain - thanks.

So while I still don't know the solution to my problem, I have worked around it by performing a download-only operation for the three .debs with apt-get, installing mplayerthumbs and mozilla-mplayer with the above command within /var/cache/apt/archives.
 
Old 04-10-2011, 05:16 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,615
Blog Entries: 2

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
It is simple to explain, but not so simple to do in a proper way.
If you compile software from source, you can install it without giving the package-manager knowledge of the installed software. This is the way you are doing it. But a better option would be to make a .deb-package from that software. You can use a tool like checkinstall, but I don't know if that includes dependency-handling.
You also can package that software manually, you can learn how to do that here.
 
1 members found this post helpful.
Old 04-10-2011, 05:29 PM   #5
NirvanaII
Member
 
Registered: Jun 2005
Posts: 139

Original Poster
Rep: Reputation: 18
Oh, right I see what you mean. Yes, I agree that would be an elegant way of doing things. Checkinstall reads like just the thing to use if indeed it checks for dependencies - I shall look into that at a later time. Thankyou for your help, TobiSGD.

Out of curiousity, i'd still like to know if there is an option do ditch dependency checking / mark packages to be ignored for apt-get and aptitude, if you or anybody else knows.
 
Old 04-10-2011, 06:13 PM   #6
NirvanaII
Member
 
Registered: Jun 2005
Posts: 139

Original Poster
Rep: Reputation: 18
Okay checkinstall worked! Easy to use too. So long as you give the same .deb name as recognised by apt-get then the build can be passed off as the required dependency. Here's a howto I followed for anyone else wanting do the same:

http://www.falkotimme.com/howtos/checkinstall/index.php

Last edited by NirvanaII; 04-10-2011 at 06:41 PM.
 
  


Reply

Tags
apt, checkinstall


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian - Are dpkg, apt-get, aptitude... safely "mixable"? armandino Linux - General 5 02-07-2011 12:52 PM
how to use apt-get/aptitude/dpkg in ubuntu to install packages on a HDD (booting ubuntu from CD) gujedan Linux - Newbie 1 10-07-2010 07:02 AM
dpkg/apt-get/aptitude broke after I fixed corrupted filesystem kevinbenko Debian 4 10-08-2008 10:20 PM
Debian 4 Stable - dpkg/apt-get/aptitude - Database reading issue? Brian Ryans Debian 1 05-18-2007 05:09 AM
What is the difference between dpkg and aptitude/apt-get? Akhran Debian 13 03-14-2006 12:33 AM


All times are GMT -5. The time now is 08:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration