Download your favorite Linux distribution at LQ ISO.
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, 09: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, 02: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, 11:26 AM   #3
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

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

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

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