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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-10-2011, 11:53 AM
|
#1
|
|
Member
Registered: Jun 2005
Posts: 139
Rep:
|
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
|
|
|
|
04-10-2011, 12:22 PM
|
#2
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,155
|
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.
|
|
|
|
04-10-2011, 04:08 PM
|
#3
|
|
Member
Registered: Jun 2005
Posts: 139
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
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.
|
|
|
|
04-10-2011, 04:16 PM
|
#4
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,155
|
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.
|
04-10-2011, 04:29 PM
|
#5
|
|
Member
Registered: Jun 2005
Posts: 139
Original Poster
Rep:
|
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.
|
|
|
|
04-10-2011, 05:13 PM
|
#6
|
|
Member
Registered: Jun 2005
Posts: 139
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:26 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|