B
B
BelBES2015-04-13 11:00:22
linux
BelBES, 2015-04-13 11:00:22

How to disable installation of a package in Ubuntu?

Can you please tell me how you can prevent the installation of a certain package through apt-get install, even if it is required to install other packages? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2015-04-13
@BelBES

Put in /etc/apt/preferences.d/ (any name, for example the name of this package) a file with the content

Package: (имя пакета)
Pin: origin ""
Pin-Priority: -1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question