LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2016, 05:08 PM   #1
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Rep: Reputation: Disabled
Forbidding a package from being installed


Is this method the correct one if I want to forbid a foo package from being installed on Debian, even if this foo package is a dependency of another package? For example, geoclue is a dependency of Steam. However, I still want to install Steam, but not geoclue. geoclue is also a dependency of webkitgtk, and I want to install webkitgtk but not geoclue.

The method:

nano /etc/apt/preferences

Package: geoclue
Pin: origin ""
Pin-Priority: -1
 
Old 01-25-2016, 08:26 AM   #2
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Original Poster
Rep: Reputation: Disabled
Just letting you guys know: I'll try out Debian today, but I need to know if this is right BEFORE installing the system.
 
Old 01-25-2016, 09:01 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,297
Blog Entries: 36

Rep: Reputation: Disabled
check out the apt-mark utility.
 
Old 01-25-2016, 09:32 AM   #4
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Original Poster
Rep: Reputation: Disabled
Sorry, I'm not on Debian ATM. If you are on Debian, could try it out and show me one example of how to use it the way I intend?

Cheers.
 
Old 01-25-2016, 10:24 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,297
Blog Entries: 36

Rep: Reputation: Disabled
Code:
sudo apt-mark hold <package>
http://manpages.ubuntu.com/manpages/...pt-mark.8.html
 
Old 01-25-2016, 01:07 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,720
Blog Entries: 7

Rep: Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401
Quote:
Originally Posted by Amarildo View Post
Just letting you guys know: I'll try out Debian today, but I need to know if this is right BEFORE installing the system.
i think you have to install debian first-
but you can do an offline install, then do the apt-mark stuff.
 
Old 01-26-2016, 01:34 PM   #7
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Original Poster
Rep: Reputation: Disabled
I'm on Debian sid now

apt-mark has the disadvantage of being easily overridden, so I'm using apt preferences instead.

The correct file looks like this:

Code:
Package: geoclue-2.0 denemo wine default-jre openjdk-6-jre openjdk-7-jre geoclue libqtlocation libplasma-geolocation-interface4 zeitgeist libzeitgeist-2.0-0 gcj-5-jre gcj-5-jre-headless gcj-jre gcj-4.9-jre *-jre
Pin: origin *
Pin-Priority: -32768
I'm more than happy with this configuration. The last thing to test is Steam and X-Plane with the free drivers (which is already fixed on Arch), because of this super-mega-huge bug which is probably not yet fixed in Debian: http://forums.grsecurity.net/viewtopic.php?f=3&t=4351
 
  


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
list installed package files and how to know which package a file belongs bujecas Slackware 3 01-09-2010 03:14 PM
LXer: Pretending a Package is Installed by Creating an Empty Package with Checkinstal LXer Syndicated Linux News 0 05-03-2009 03:10 PM
why is ssh forbidding connectins? eantoranz Linux - Networking 4 07-20-2005 09:54 AM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration