Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 am new in linux world. I have compiled squid with delay pools and it
it works fine as I have pland. Now my question is if I want to install a mail server and I am going to install postfix, dovecot, mysql, https, clam etc. what is the best way to compile each product or to use yum and install that way? or is there another way to create my distro media of software which will include all the product I am going to use in my enviorment.
I am new in linux world. I have compiled squid with delay pools and it
it works fine as I have pland. Now my question is if I want to install a mail server and I am going to install postfix, dovecot, mysql, https, clam etc. what is the best way to compile each product or to use yum and install that way? or is there another way to create my distro media of software which will include all the product I am going to use in my enviorment.
It will be much better for you if you can get an RPM for each product and install each RPM using yum, or better yet, smart package manager (http://labix.org/smart). You can also create your own RPMs if you need to as well. When creating your own RPMs, I have found the following to be essential: (1) everything in the RPM spec file is optional except for the header lines at the beginning of the file and the "%files" section, which is where you list the files you want to be put in the RPM you are building; (2) you can tell rpmbuild to look for the files that you want in the RPM starting from a directory that you choose; in other words, you can tell rpmbuild to do nothing more than collect files of your choice and package them up in an RPM that has a name that you choose; (3) you need not be root on the linux system in order to compile and, if possible, test your program(s); however, you will need to be root in order to use rpmbuild to create your RPMs.
thank you for reply
one more question if i download squid: yum --downloadonly --downloaddir=/squid, -y install squid
later if I reinstall server or if I wil need to install squid on another server which will be same os, that case i will have dependency issue or it will work as on the system i downloaded. this question is for that i want to have own software distro which is working on my os, in later use i will just install software on new installed os without internet just from my dvd media. ok? what can you say about it??
thank you for reply
one more question if i download squid: yum --downloadonly --downloaddir=/squid, -y install squid
later if I reinstall server or if I wil need to install squid on another server which will be same os, that case i will have dependency issue or it will work as on the system i downloaded. this question is for that i want to have own software distro which is working on my os, in later use i will just install software on new installed os without internet just from my dvd media. ok? what can you say about it??
If you have dependency issues now, what makes you think that you won't have them on another server installed from the same DVD?
If you want things to work just as they are now, then make a backup of your server. You can use one of many easily-found products to generate your own system ISO images, which will essentially 'clone' your existing server. mondoarchive, systemimager, and mkcdrec are just three of them.
you are right my friend cloning is best thing but softwares are updating downloading with yum thay are different. my question's ideia is that download postfix, dovecot, clamd, spamassassin, mysl... software with whole dependenses for centos (some version) and without internet install server, than software will not to have surprises during installation an configuration of server. okey it is much simple to carry your images and clone them but some situations need different installations and with dedicated server version, allready downloaded and tested software installation is much better. I want to use vertion of software which i want and tested software in my enviormen not what yum will give me (new version).
you are right my friend cloning is best thing but softwares are updating downloading with yum thay are different. my question's ideia is that download postfix, dovecot, clamd, spamassassin, mysl... software with whole dependenses for centos (some version) and without internet install server, than software will not to have surprises during installation an configuration of server. okey it is much simple to carry your images and clone them but some situations need different installations and with dedicated server version, allready downloaded and tested software installation is much better. I want to use vertion of software which i want and tested software in my enviormen not what yum will give me (new version).
Right...which brings you back to cloning the server, which will have EVERYTHING just like you want it.
If you don't want to use what's already in the online repositories (that is, the versions that have been tested/verified with the OS they go with), then feel free to download whatever you want, and install the packages manually. All you're going to do is give yourself headaches with updating/patching a server, since you'll have to do EVERYTHING manually.
Right...which brings you back to cloning the server, which will have EVERYTHING just like you want it.
If you don't want to use what's already in the online repositories (that is, the versions that have been tested/verified with the OS they go with), then feel free to download whatever you want, and install the packages manually. All you're going to do is give yourself headaches with updating/patching a server, since you'll have to do EVERYTHING manually.
I would agree that dyto should first look to see if a program he wants is already available as an RPM for his distribution. However, what if a program isn't available, or a program from an already available RPM, when installed, doesn't work correctly or even crashes. Then, he will need to build his own RPMs. If his linux distribution is anything like the SUSE I use, rpmbuild should save him some headaches by checking for dependencies and incorporating the necessary dependency requirements into any RPM he builds.
I was reading your posts but before i read the look what I have done. New installed server centos 6.5 and whant to install mail server on it. I have used yum --downloadonly --downloaddir=/myrepo/postfix, dovecot, mysql, calamav, postgrey and so on. after that to install postfix i changeg directory /myrepo/postfix and with command rpm -Uvh *.rpm have installed postfix. when i installed server i did not used yum update or enything just after installing server did that with downloadonly. now for testing purposed i have installed another centos machine on my vbox and copied all downloaded rpms from /myrepo
to new vbox centos server. of course installation of rpms with same method is working. now what can you say about it.
I would agree that dyto should first look to see if a program he wants is already available as an RPM for his distribution. However, what if a program isn't available, or a program from an already available RPM, when installed, doesn't work correctly or even crashes. Then, he will need to build his own RPMs. If his linux distribution is anything like the SUSE I use, rpmbuild should save him some headaches by checking for dependencies and incorporating the necessary dependency requirements into any RPM he builds.
No, he doesn't NEED to build RPM's to install software. Installing from source via .tar.gz will also accomplish a manual installation. But even if he does build RPM's of whatever he installs manually, he's STILL going to have a hard time in the near future. Manually solving dependencies and never moving forward isn't a good plan. And while that RPM he built for version xxx of Linux may work NOW, as soon as the OS is upgraded, that custom RPM is then useless, since the libraries/dependencies are now outdated.
hello again
I was reading your posts but before i read the look what I have done. New installed server centos 6.5 and whant to install mail server on it. I have used yum --downloadonly --downloaddir=/myrepo/postfix, dovecot, mysql, calamav, postgrey and so on. after that to install postfix i changeg directory /myrepo/postfix and with command rpm -Uvh *.rpm have installed postfix. when i installed server i did not used yum update or enything just after installing server did that with downloadonly. now for testing purposed i have installed another centos machine on my vbox and copied all downloaded rpms from /myrepo
to new vbox centos server. of course installation of rpms with same method is working. now what can you say about it.
Say about WHAT? You downloaded packages from the online repositories, and installed them...that's exactly how things are supposed to work. You downloaded the packages and dependencies, so of COURSE things installed correctly. Which brings us back to "If you clone the first server, it will have ALL your files on it...which you can then install onto another system."
Make backups and use them...that's what they're for.
my friend i will tell you what for I download rpms and install them. I needed to instal php-sqlite on my server. I have enabled the epel repo. when it started to install php-sqlite third version it also downloaded mariadb at that time I was using mysql and than what? it just crashed mysql. now I test repos that every product is working and not making updates to damage each other. it just killed my mailserver. that's why i want to have tested RPMs! on my offline media to install on server and be sure it will work as I want. what can you sugest other. have installed configured mail server and last you install web interface need php-sqlite and it is installing mariabd and killing your db.
my friend i will tell you what for I download rpms and install them. I needed to instal php-sqlite on my server. I have enabled the epel repo. when it started to install php-sqlite third version it also downloaded mariadb at that time I was using mysql and than what? it just crashed mysql. now I test repos that every product is working and not making updates to damage each other. it just killed my mailserver. that's why i want to have tested RPMs! on my offline media to install on server and be sure it will work as I want. what can you sugest other. have installed configured mail server and last you install web interface need php-sqlite and it is installing mariabd and killing your db.
What you're asking makes no sense.
You have never told us what version/distro of Linux you're using, but if you're using Red Hat ENTERPRISE, you have one solution to make sure that everything works right: PAY FOR IT. Mixing repositories when you don't know what you're doing causes problems, as you've seen. The dependencies for packages from ONE repository might not be the same as the 'official' repository. Want things to work right all the time? Stick with the official repositories...they don't release packages/updates until they're tested on what you're using.
AGAIN: if you want to have a stable configuration that you can move from one machine to another, clone your server. Want to have things working right from packages, use the official repositories/packages. Simple. If there's a piece of software that's not in the repositories, either build it from source, or take GREAT CARE in adding another repository, and pay attention to what it's going to do. You had problems because you blindly ignored the messages that would have come up, telling you that installing xxx would break yyy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.