LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   using apt-get (https://www.linuxquestions.org/questions/linux-software-2/using-apt-get-201892/)

justinm99 07-06-2004 04:29 PM

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

ehawk 07-06-2004 04:59 PM

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.

Etruscan 07-06-2004 05:00 PM

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.

justinm99 07-06-2004 05:06 PM

yum
 
is yum itself a repository that has apt packages?

ehawk 07-06-2004 05:38 PM

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.


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