LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 11-05-2012, 11:27 AM   #1
misterpiddles
LQ Newbie
 
Registered: Nov 2012
Location: Boston-ish, MA, USA
Distribution: Debian
Posts: 17

Rep: Reputation: Disabled
Basic questions on Linux package management


I'm new to Linux as of the last few months and am confused on something basic with regard to package installation.

I'm working on a Debian distro, and have seen some install files that use "apt-get" to install various packages.

What's unclear to me is where these packages are coming from. Two questions:

1) How does the server know where to get the packages if there's no server path or www address in the apt-get command line?

2) Do Linux distros typically come with "dormant" packages that need to be enabled with "apt-get" or are packages usually obtained from an external distribution site?
 
Old 11-05-2012, 11:44 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,203

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
What's unclear to me is where these packages are coming from. Two questions:

1) How does the server know where to get the packages if there's no server path or www address in the apt-get command line?
The server paths are within list of sources kept in /etc as dpkg /apt-get record. The command has its own record.

Quote:
2) Do Linux distros typically come with "dormant" packages that need to be enabled with "apt-get" or are packages usually obtained from an external distribution site?
Some distros have complete set of installable packages on the installer DVD (e.g. Slackware DVD installer) and some don't have (e.g. Mint CD) this latter relies merely on the internet connection to download and install whatever you apt-get in the command line.

You shall have better and more complete answers from here.

Hope that helps.
 
1 members found this post helpful.
Old 11-05-2012, 11:49 AM   #3
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,859

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Quote:
Originally Posted by misterpiddles View Post
I'm new to Linux as of the last few months and am confused on something basic with regard to package installation.

I'm working on a Debian distro, and have seen some install files that use "apt-get" to install various packages.

What's unclear to me is where these packages are coming from. Two questions:

1) How does the server know where to get the packages if there's no server path or www address in the apt-get command line?

2) Do Linux distros typically come with "dormant" packages that need to be enabled with "apt-get" or are packages usually obtained from an external distribution site?
1) Look in the file /etc/apt/sources.list (and sometimes additional files in /etc/apt/sources.list.d) to see where your packages are coming from. Also for any given package you can: apt-cache policy mypackage

2) Debian gives you your choice, you can either perform a "netinstall" (fetching all packages from the internet during install) or download a complete CD/DVD library of all packages in the repository for offline installation.
 
1 members found this post helpful.
Old 11-05-2012, 12:54 PM   #4
misterpiddles
LQ Newbie
 
Registered: Nov 2012
Location: Boston-ish, MA, USA
Distribution: Debian
Posts: 17

Original Poster
Rep: Reputation: Disabled
Ok, thanks for the helpful info guys. Much appreciated.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux to Solaris 10 Package Management metallica1973 Solaris / OpenSolaris 14 12-17-2007 06:23 AM
Linux package management ! how many?? cyberiapost Linux - Newbie 16 12-25-2006 02:29 PM
Questions About Package Management in Slick BobNutfield Suse/Novell 3 05-02-2006 02:13 PM
open SuSE General Package Management questions netjack Suse/Novell 1 04-27-2006 06:18 AM


All times are GMT -5. The time now is 12:04 AM.

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