Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.