I need to upgrade to a recent Squid version, I need a Step by step procedure
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
First of all you'll need to download the new version of Squid.
From the research I have done, they only publish the source, and thus don't have binaries.
After downloadling it you should extract the .tar.gz files.
tar -zxvf file.tar.gz
then go to the extracted directory
cd file
configure:
./configure
compile:
make
and install ( you need to be root, so first type su):
make install
This should copy the program files. However I do not know whether your old settings would still be available.
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
Before installing the new version, copy the squid.conf file to another location. Then uninstall the old version of squid (rpm -e squid if rpm-based), then proceed with the new squid installation. When you are done you can use the settings from your old squid.conf file and make any changes you need from there. It is nice to start from a working squid.conf and modify it from there.
No it is a general procedure. When you need to compile software you'll practically always use this combination.
Sometimes though you may have to use additional arguments with ./configure. The only way to learn those is to consult the INSTALL file.
On some other occasions the programmers includes scripts to test your compiled software to see if they work or if some parts are missing. Although it is not obligatory, you may run these tests by typing
make check
after make.
If they do not fail you can go ahead with make install
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.