LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11:53 AM   #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, 12:22 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 04: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, 04:16 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 04: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, 05: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 05: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 11:52 AM
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 06:02 AM
dpkg/apt-get/aptitude broke after I fixed corrupted filesystem kevinbenko Debian 4 10-08-2008 09:20 PM
Debian 4 Stable - dpkg/apt-get/aptitude - Database reading issue? Brian Ryans Debian 1 05-18-2007 04:09 AM
What is the difference between dpkg and aptitude/apt-get? Akhran Debian 13 03-13-2006 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:57 PM.

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
Open Source Consulting | Domain Registration