LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-19-2014, 05:46 PM   #1
dyto
Member
 
Registered: Mar 2014
Posts: 86

Rep: Reputation: Disabled
need advice!!! software installation


hello

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.
 
Old 04-20-2014, 01:37 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
Originally Posted by dyto View Post
hello

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.
 
Old 04-20-2014, 09:03 AM   #3
dyto
Member
 
Registered: Mar 2014
Posts: 86

Original Poster
Rep: Reputation: Disabled
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??
 
Old 04-20-2014, 10:36 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by dyto View Post
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.
 
Old 04-20-2014, 11:55 AM   #5
dyto
Member
 
Registered: Mar 2014
Posts: 86

Original Poster
Rep: Reputation: Disabled
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).
 
Old 04-20-2014, 02:28 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by dyto View Post
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.
 
1 members found this post helpful.
Old 04-20-2014, 11:57 PM   #7
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
Originally Posted by TB0ne View Post
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.
 
Old 04-21-2014, 03:55 AM   #8
dyto
Member
 
Registered: Mar 2014
Posts: 86

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-21-2014, 10:36 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by xode View Post
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.
 
Old 04-21-2014, 10:39 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by dyto View Post
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.
 
Old 04-21-2014, 11:47 AM   #11
dyto
Member
 
Registered: Mar 2014
Posts: 86

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-21-2014, 01:06 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by dyto View Post
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.
 
Old 04-21-2014, 01:21 PM   #13
dyto
Member
 
Registered: Mar 2014
Posts: 86

Original Poster
Rep: Reputation: Disabled
okey thanks if i will have same problem i will inform you.
 
  


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
I Need advice with php installation countrydj Programming 5 12-18-2011 09:45 AM
Looking for some advice prior to Installation DarkeStryke Mandriva 6 11-30-2006 10:37 AM
Installation advice re: hardware downinthemine Slackware 4 12-06-2003 10:17 PM
Installation Advice CryptDragoon Linux - Newbie 3 10-08-2003 03:00 PM
I need some installation advice OrganicX Linux - Newbie 19 03-05-2003 01:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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