LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2006, 04:37 PM   #1
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
How to install _only_ security updates with apt-get?


Is there a way to install debian security updates with apt-get without installing upgrades that are not security-related?

I'm using debian sarge.
 
Old 05-09-2006, 08:22 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
There may be a simpler way, but the way I would do it would be to comment out the standard lines, and just leave the security ones. For example, turn this:
Code:
#deb file:///cdrom/ sarge main

deb http://ftp.debian.org/debian/ stable main
deb-src http://ftp.debian.org/debian/ stable main

deb http://security.debian.org/ stable/updates main
Into this:

Code:
#deb file:///cdrom/ sarge main

#deb http://ftp.debian.org/debian/ stable main
#deb-src http://ftp.debian.org/debian/ stable main

deb http://security.debian.org/ stable/updates main

After you change the file /etc/apt/sources.lst, you would just do apt-get update followed by apt-get upgrade.

Why you would want to do this is beyond me though. If the box won't be connected to the net, you should still do the full set of updates when it is built.

Also, if this is a desktop machine, don't use debian sarge. Go at least for testing, or unstable. Sarge is intended for servers, and has very few of the newest software.

Peace,
JimBass
 
Old 05-09-2006, 08:32 PM   #3
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Unless you have inofficial repositories in your sources.list all updates to sarge are security related.
 
Old 05-10-2006, 07:52 AM   #4
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by demian
Unless you have inofficial repositories in your sources.list all updates to sarge are security related.
OK, in that case I will just uncomment the unofficial sources.

Thanks,

Lotharster
 
Old 05-10-2006, 11:21 AM   #5
philippeP
LQ Newbie
 
Registered: Sep 2005
Location: Germany
Distribution: Debian sarge/etch
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by Lotharster
OK, in that case I will just uncomment the unofficial sources.
What are you trying to do exactly? Supposing this "unofficial source" doesn't have a specific repository for security updates, then by commenting it out, I would guess you may be missing out on their security updates.

Not quite 100% sure about my comment, but I don't see where you would get these updates from otherwise?!
 
  


Reply



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
Security Updates jakebhoy Mandriva 2 09-04-2005 06:41 PM
Easy Install AND Security Updates pmconway Linux - Networking 3 10-04-2004 11:21 AM
New install Suse 9.1 won't boot after security updates lmonroe Linux - General 11 08-11-2004 03:37 AM
Install security updates? trey85stang Slackware 1 05-03-2004 11:39 AM
Can apt-get downlaod and install kernel updates? jdruin Linux - Software 2 04-19-2004 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:05 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
Open Source Consulting | Domain Registration