LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 03-03-2003, 08:25 PM   #1
IceNineJon
Member
 
Registered: Jun 2002
Location: Los Angeles, Ca, USA
Distribution: Mandrake 9.1
Posts: 82

Rep: Reputation: 15
Distro with easy package updating via the shell?


Hello all,
First of all, please forgive me...I'm still very much a newbie to Linux. Here's what I want to do. I need to set up a Linux box for the sole purpose of running mySQL, Apache, and PHP. The box will be used for nothing else than serving a website so I donít want to put KDE or anything like that on it (shell only).
On top of that, Iíd like the distro to be very easy to upgrade via packages. I know that most distros such as RedHat, Mandrake, etc. have graphical update programs where you can just click next and it downloads the packages that are new and installs them. Is there such a thing without the graphical interface (that I could run from the shell)? If so, what distro has the best one? Iím willing to compile mySQL, Apache, and PHP from source and update it from source but I donít want to spend all my time updating all the packages in the OS every time a package is updated for security reasons (I want to spend most of my time on the actual website!).
Any suggestions?

Thanks everyone!,
Jon
 
Old 03-03-2003, 08:44 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
debian
 
Old 03-03-2003, 08:49 PM   #3
IceNineJon
Member
 
Registered: Jun 2002
Location: Los Angeles, Ca, USA
Distribution: Mandrake 9.1
Posts: 82

Original Poster
Rep: Reputation: 15
rshaw, thanks for your quick reply!

Can anyone elaborate on Debian's system when it comes to upgrading? For example, can I just run a command and it goes and finds updated packages, downloads them and their dependencies, and installs them? Also, something I've found on a lot of distros is that people don't update the packages as quickly as they update the source (it sometimes takes several weeks for new packages)...I assume that since Debian is so widely used, this shouldn't be an issue?

Thanks!

Last edited by IceNineJon; 03-03-2003 at 09:05 PM.
 
Old 03-03-2003, 09:25 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
there is three different levels of debian, stable, unstable, and testing. stable evolves very slowly, the deb's prize rock solid stability over latest releases. which is a good thing(tm) for servers. to install a package it's -> apt-get install <packagename> it will retrieve the package plus any other packages need for <packagename> to run properly. updates and upgrades work basically the same way. your etc/apt/sources.list dictates which servers and directories on the servers to pull the packages from. if your running the stable release, you can modifiy the sources list to avoid updates from the unstable branch etc. there is a good apt howto here:
http://www.debian.org/doc/manuals/ap....html#contents
 
Old 03-03-2003, 09:36 PM   #5
IceNineJon
Member
 
Registered: Jun 2002
Location: Los Angeles, Ca, USA
Distribution: Mandrake 9.1
Posts: 82

Original Poster
Rep: Reputation: 15
Okay, sorry if I'm being redundent but I want to make sure I understand before I commit my time. Let's say that a vulnerability with openssh was just discovered. I can run apt-get and it will automatically download and install the new version of openssh which has the security fix? About how long after security flaws are discovered are new packages released?

I'm almost sold!,
Jon
 
Old 03-03-2003, 09:54 PM   #6
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
security flaws in the stable branch are handled quickly, they claim most fixed within 48 hours. you'll need to add the line -> deb http://security.debian.org/ woody/updates main contrib non-free <- to your etc/apt/sources.list to stay current with security updates via apt-get
 
Old 03-03-2003, 10:06 PM   #7
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
to elaborate, once you edit your sources.list (as rshaw explained),
you run:
Code:
apt-get update    syncs your local db, with the "newest one"
apt-get dist-upgrade    or apt-get upgrade   - both install any new upgrades. dist-upgrade is most likely preffered - see man page
keeping stuff up-to-date is nice and tidy with Debian.
 
Old 03-03-2003, 10:17 PM   #8
IceNineJon
Member
 
Registered: Jun 2002
Location: Los Angeles, Ca, USA
Distribution: Mandrake 9.1
Posts: 82

Original Poster
Rep: Reputation: 15
So I could theoretically put that command in a cron job and it would automatically update every week or something without me having to mess around with it? That would be great!

Thanks for all your help!
 
Old 03-03-2003, 11:29 PM   #9
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Not to change the subject, but...

Mandrake's urpmi can be run from the command line. No tools needed, you update a mirror list, and fire off:
urpmi packagename
It goes, gets it, and installs it for you. Very similar to apt-get only it's Mandrake and doesn't throw a fit about new packages

Cool
 
Old 03-03-2003, 11:55 PM   #10
IceNineJon
Member
 
Registered: Jun 2002
Location: Los Angeles, Ca, USA
Distribution: Mandrake 9.1
Posts: 82

Original Poster
Rep: Reputation: 15
I have a Mandrake box which I haven't really touched (I installed it and haven't had time to mess with it) so I give this a whirl and it looks good (although upon issuing "urpmi --auto-select" it reported that I have >450 megs to download of updates which seems excessive?).

Does anyone know if Mandrake updates their packages more often than Debian or vice-versa?

Thanks for the suggestion!
 
Old 03-04-2003, 12:07 AM   #11
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Where does everyone get this --auto-select thing from? I issue:
urpmi packagename
And it downloads and installs package for me. I've never used an --auto-select switch, but seen 2 posts with it lately, how odd...

Anyway, they update their packages quite often. I get the emails when they do it, and I probably get about 10 a day. I don't update them all, but it at least give you an idea of how often. They fix bugs, add features, plug security holes, you know, the usual.

450megs though, isn't that much. Depends on what you are updating really, if it's everything, that rather small actually.

Cool
 
Old 03-04-2003, 12:10 AM   #12
IceNineJon
Member
 
Registered: Jun 2002
Location: Los Angeles, Ca, USA
Distribution: Mandrake 9.1
Posts: 82

Original Poster
Rep: Reputation: 15
I read the --auto-select command off of a website. I believe what it does it connects to the FTP/HTTP update server and determines what packages are out of date on your machine and downloads the new ones from that server. This is what I'd ideally want since I don't want to have to sit there and update individual packages (I just want everything on the machine to be current).

I guess you could compare it to Windoze Update (dare I say it!) which detects when updates for Windoze are available and downloads them for you.
 
Old 03-04-2003, 12:17 AM   #13
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Oh wow, that's pretty sweet if that's what it does! I'll look into it a bit more..

Thanks for the info

Cool
 
Old 03-04-2003, 12:34 AM   #14
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Originally posted by IceNineJon
I believe what it does it connects to the FTP/HTTP update server and determines what packages are out of date on your machine and downloads the new ones from that server. This is what I'd ideally want since I don't want to have to sit there and update individual packages (I just want everything on the machine to be current).
yep, that's what apt-get update; apt-get dist-upgrade does.


here's the dist-upgrade vs. upgrade difference (apt-get man page)

Code:
       dist-upgrade
              dist-upgrade, in addition to performing the function of upgrade, also  intelligently  handles changing 
dependencies with new versions of packages; apt-get has  a  "smart"  conflict  resolution system,  and it will 
attempt to upgrade the most important packages at the expense of less important ones  if  necessary.
and if you're thinking of a cron job, this might be useful:

Code:
       --assume-yes
              Automatic  yes to prompts; assume "yes" as answer to all prompts and run non-interactively. If an 
undesirable situation, such  as changing  a held package or removing an essential package occurs then
 apt-get will abort.  Configuration Item: APT::Get::Assume-Yes.

Last edited by cuckoopint; 03-04-2003 at 12:36 AM.
 
Old 03-04-2003, 02:04 AM   #15
eggs
Member
 
Registered: Jun 2002
Location: Jackson, TN
Distribution: Arch Linux 0.6
Posts: 60

Rep: Reputation: 15
I have found Debian to be much more stable than Mandrake (good for a server). Not to mention much smaller. After only a base install its 98 MB I believe... so you could get away with having a lot of space left for more important things, especially if you leave out the development stuff (which probably shouldn't be on a server anyway, specific situations ignored)
 
  


Reply


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
Easy Shell Script Question scriptn00b Linux - Newbie 8 09-04-2005 07:09 AM
Need help in updating two rpm package. backroger Linux - Enterprise 2 02-20-2005 11:19 PM
Package Errors After Updating? spaaarky21 Fedora 3 12-04-2004 03:59 PM
Package updating/installing tool in FC1 vharishankar Linux - Software 7 11-29-2004 09:39 AM
Distro for K6-2, GUI and easy package management sonofdbn Linux - Newbie 3 03-10-2004 06:48 AM


All times are GMT -5. The time now is 04:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration