Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 04-20-2011, 08:39 PM   #1
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Rep: Reputation: 15
Lock package upgrade from terminal

I only have shell access to one of my boxes so I need to know how I can I stop a package from being upgraded from the terminal.

Old 04-21-2011, 01:24 AM   #2
Senior Member
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
You can use either dpkg or aptitude for this. You may need to install aptitude from the Ubuntu repos since recent versions of Ubuntu do not include aptitude on a standard Ubuntu install.
See this:
1 members found this post helpful.
Old 04-21-2011, 10:26 AM   #3
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,625

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
I would use the link supplied by tommcd but just use the dpkg directions. The only reason I say that is that dpkg is the base system and I don't like adding layers.

I will admit to not being that fond of aptitude too so I may be prejudiced.
Old 04-21-2011, 10:12 PM   #4
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
Cheers that link worked, thank you.


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
Lock terminal session agallant Linux - Security 3 04-11-2007 03:41 PM
lock session via terminal? itz2000 Linux - Newbie 7 04-06-2006 12:01 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM
scroll lock stops/pauses terminal? fibbi Linux - Software 0 02-03-2004 07:40 PM
Lock the current terminal session? kipbenson4 Linux - Newbie 1 08-14-2003 09:04 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration