LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   CLI apt file version locking- how can it be done? (https://www.linuxquestions.org/questions/debian-26/cli-apt-file-version-locking-how-can-it-be-done-491281/)

flashingcurser 10-10-2006 09:12 PM

CLI apt file version locking- how can it be done?
 
I have a several headless debian servers without X.


I would like to use a webmin module that is not in the standard repositories. apt-get install webmin webmin-core, no problem.
Update webmin inside webmin, again no problem. Get module, no problem. apt-get update && apt-get upgrade -- big problem! apt doesnt find webmin (because of the upgrade within webmin)- apt borks. It has problems with any upgrade, so: rm -r /etc/webmin && apt-get --purge remove webmin-- voila everything works again. Then reinstall re-update, re-install module. What a pain.


I would like to find a way to lock the package version so apt will not try to update webmin. I'll update webmin through webmin.

I couldn't find anything in:
man apt_preferences
man apt.conf
man apt-get
man aptititude

There IS an easy way through synaptic-- but nothing I can find from the command line.

Any way some old debian hacker could enlighten me?

Thanks

dan

Dutch Master 10-10-2006 09:31 PM

Search for "pinning" a package ;)

rickh 10-10-2006 09:37 PM

Did you try apt-get remove -f webmin

When Etch becomes stable there will be no more webmin on Debian due to general bugginess and the lack of desire on the part of webmin developers to fix it. Might be time to start searching for an alternative.

PingFloyd 10-10-2006 10:18 PM

aptitude hold package_name

flashingcurser 10-11-2006 12:10 AM

Thanks ping.

PingFloyd 10-11-2006 01:15 AM

No problem. There's other ways to do it without aptitude, but I like handling it with aptitude since it's a clean and easy way to do it.


All times are GMT -5. The time now is 12:12 AM.