LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2004, 04:29 PM   #1
justinm99
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Question using apt-get


Hi guys,

I'm using apt-get on redhat AS 2.1 here at work to try to download and install samba 3 without all the nasty dependancy business. If I type the following samba 2 will be installed:

apt-get install samba

Do you guys know how I would go about in using apt to install samba version 3?

Thanks,
Justin
 
Old 07-06-2004, 04:59 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
update apt-get sources

You need to find a repository that has a newer version of said application, and add that to your sources.list file for apt-get (I use yum myself). Then I think you just update to the newer version via

apt-get update said_application, I think

Look at the man page for apt-get "man apt-get". It will tell you both the syntax, and where your repository list is located, so that you can edit it appropriately. As for a repository to use, for newer versions, I will often try freshrpms.org (I think), and dag. Do google searches for these to find them.
 
Old 07-06-2004, 05:00 PM   #3
Etruscan
LQ Newbie
 
Registered: Feb 2004
Distribution: Plan9, slackware 10
Posts: 3

Rep: Reputation: 0
Apt-get searches all the mirrors that you put when you set up apt, and gets the latest version of the application you want to install. So its not what you are doing, its whats on the mirror.
 
Old 07-06-2004, 05:06 PM   #4
justinm99
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
yum

is yum itself a repository that has apt packages?
 
Old 07-06-2004, 05:38 PM   #5
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
apt-get using rpms

If you are using apt-get with Red Hat, it is looking at the sites you have named in the file /etc/apt/sources.list and pulling off all the rpms you requested and the associated rpm dependencies. You can just do a google search for (apt-get Red Hat sources.list) or something like that and find some other ones which might have more up to date offerings.

You can also do a search for (yum Red Hat yum.conf) or something like that if you want to use Yum. Both yum and apt-get do the same basic thing. Yum's list of repositories is located in /etc/yum.conf on fedora, I would guess it is the same in Red Hat. You just edit the sources list for the method you wish to use.

If you have apt-get installed already, you could just use that, editing the /etc/apt/sources.list file to include mirrors/repositories you wish to use. Again, freshrpms.org (I think) has recent releases. I think there is one called newrpms or something like that. You could also do a google search for (recent packages apt-get mirrors repositories) or the like.

Yum itself is not a repository. It is an application, in the same sense that apt-get is, that installs and updates software (rpm-based, in your case) by looking and various sites having those rpms (repositories), making sure that any dependencies are also installed/updated.

Yum and apt-get are just two applications which do the same thing, basically. For apt-get, you edit the file /etc/apt/sources.list in a manner that looks like what you already have there, including a path to the online location (directory) which has that big list of rpms at whatever repository you intend to add. Look at some sample source.list files by doing that proposed google search above, or just look at what you have in /etc/apt/sources.list. When you look at these files, then use your browser to go to the locations mentioned. I think it will make more sense to you what exactly apt-get is doing.

Last edited by ehawk; 07-06-2004 at 05:51 PM.
 
  


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
How to set up proxy in Apt-Get's apt.conf? rykel Fedora 9 10-09-2013 03:24 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM
apt-get for slackware (the real apt...not swaret or slapt) hypermegachi Slackware 3 10-31-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 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