LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-31-2010, 09:36 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
How can I install some packages from the Internet?


I have installed Debian Lenny from a 5 DVD set I purchased some time ago as well as packages I needed over time but now 'synaptic' refuses to recognize the first dvd as number one although when I try it, it boots normally for an install that I then abort.

I'd like to install some packages directly from the Internet, can anyone explain what I need to do or point me to instructions, I do not have much experience with the command line.

My current kernel is 2-6-26.21

Thank you for your help.
 
Old 05-31-2010, 09:55 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Google around a bit for more info on apt (the package manager), synaptic (the graphical front-end for apt) and how to set up
the list of (internet) repositories that they search for packages.
 
0 members found this post helpful.
Old 05-31-2010, 10:02 AM   #3
alioop
Member
 
Registered: Mar 2004
Location: Houston,Texas
Distribution: Via Debian!!!
Posts: 113

Rep: Reputation: 22
First go to "Post your sources.list" (top of this Debian sub-forum). Add to your /etc/apt/sources.list the repos you'll need. Do so by logging in as root, opening an editor - nano /etc/apt/sources.list. Add new sources. Save and exit. It's important to update your system with the command apt-get update. This will let your OS know it's got new sources to get apps from.

Still as root, the CLI command to install packages is apt-get install whatever. You could start off with a search, apt-cache search whatever. But I would suggest you use synaptic. It's the GUI front-end of Apt-get. Synaptic is at System > Administration > Synaptic Package Manager. One can do it all from there.
 
Old 05-31-2010, 11:37 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
To use the dvds you need to add them to your sources.list using apt-cdrom

Adding a CD-ROM to the sources.list file

If you'd rather use your CD-ROM for installing packages or updating your system automatically with APT, you can put it in your sources.list. To do so, you can use the apt-cdrom program like this:

# apt-cdrom add

with the Debian CD-ROM in the drive. It will mount the CD-ROM, and if it's a valid Debian CD it will look for package information on the disk. If your CD-ROM configuration is a little unusual, you can also use the following options:

-h - program help
-d directory - CD-ROM mount point
-r - Rename a recognized CD-ROM
-m - No mounting
-f - Fast mode, don't check package files
-a - Thorough scan mode

For example:

# apt-cdrom -d /home/kov/mycdrom add

You can also identify a CD-ROM, without adding it to your list:

# apt-cdrom ident

Note that this program only works if your CD-ROM is properly configured in your system's /etc/fstab.
 
Old 06-01-2010, 02:48 AM   #5
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
Thank you all.

This was my file "/etc/apt/sources.list.

# deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official amd64 DVD Binary-1 20100131-22:09]/ lenny contrib main

deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official amd64 DVD Binary-1 20100131-22:09]/ lenny contrib main

deb http://ftp.au.debian.org/debian/ lenny main
deb-src http://ftp.au.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib

deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib

I figured that the repos were already listed but that priority was given to get the apps from CDs due to line 2 which is an uncommented repetition of line 1.
So I commented it out and typed as root: apt-get install tree
This was the first application I needed to install and it was installed in a few seconds, it's a beauty and the result was the same using "synaptic" after removing "tree".
 
  


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
How to install packages onto Ubuntu without internet? sllinux Linux - Newbie 3 03-05-2010 07:52 PM
Can you install packages from a CD instead of RPM via the internet? Damon-Jager Linux - Newbie 6 01-30-2010 01:01 PM
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
How do I install Ubuntu packages w/o Internet connect cigtoxdoc Linux - Software 3 12-29-2008 07:28 AM
How can I install -Packages Without Internet connection- KidZero Slackware 10 07-03-2008 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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