How to upgrade sed to 4.5 on Ubuntu Server 18.04?












2















I want to try the newest sed utility on Ubuntu Server 18.04. I've tried below command but still not able to upgrade it. How can I do that?



root@u1804:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Fetched 311 kB in 7s (47.3 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
97 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@u1804:~#
root@u1804:~# apt show sed
Package: sed
Version: 4.4-2
Priority: required
Essential: yes
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Clint Adams <clint@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 328 kB
Pre-Depends: libc6 (>= 2.14), libselinux1 (>= 1.32)
Homepage: https://www.gnu.org/software/sed/
Task: minimal
Supported: 5y
Download-Size: 182 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Description: GNU stream editor for filtering/transforming text
sed reads the specified files or the standard input if no
files are specified, makes editing changes according to a
list of commands, and writes the results to the standard
output.
root@u1804:~#
root@u1804:~# apt install --only-upgrade sed
Reading package lists... Done
Building dependency tree
Reading state information... Done
sed is already the newest version (4.4-2).
0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.
root@u1804:~#









share|improve this question























  • You really should not be logged in as root. Really. And you should upgrade those 97 packages.

    – fkraiem
    Jan 5 at 12:06











  • Thanks for your suggestion. I'll take it and upgrade the packages.

    – Ogrish Man
    Jan 5 at 12:57











  • Why do you need an updated sed?

    – mdd
    Jan 5 at 17:26
















2















I want to try the newest sed utility on Ubuntu Server 18.04. I've tried below command but still not able to upgrade it. How can I do that?



root@u1804:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Fetched 311 kB in 7s (47.3 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
97 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@u1804:~#
root@u1804:~# apt show sed
Package: sed
Version: 4.4-2
Priority: required
Essential: yes
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Clint Adams <clint@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 328 kB
Pre-Depends: libc6 (>= 2.14), libselinux1 (>= 1.32)
Homepage: https://www.gnu.org/software/sed/
Task: minimal
Supported: 5y
Download-Size: 182 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Description: GNU stream editor for filtering/transforming text
sed reads the specified files or the standard input if no
files are specified, makes editing changes according to a
list of commands, and writes the results to the standard
output.
root@u1804:~#
root@u1804:~# apt install --only-upgrade sed
Reading package lists... Done
Building dependency tree
Reading state information... Done
sed is already the newest version (4.4-2).
0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.
root@u1804:~#









share|improve this question























  • You really should not be logged in as root. Really. And you should upgrade those 97 packages.

    – fkraiem
    Jan 5 at 12:06











  • Thanks for your suggestion. I'll take it and upgrade the packages.

    – Ogrish Man
    Jan 5 at 12:57











  • Why do you need an updated sed?

    – mdd
    Jan 5 at 17:26














2












2








2








I want to try the newest sed utility on Ubuntu Server 18.04. I've tried below command but still not able to upgrade it. How can I do that?



root@u1804:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Fetched 311 kB in 7s (47.3 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
97 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@u1804:~#
root@u1804:~# apt show sed
Package: sed
Version: 4.4-2
Priority: required
Essential: yes
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Clint Adams <clint@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 328 kB
Pre-Depends: libc6 (>= 2.14), libselinux1 (>= 1.32)
Homepage: https://www.gnu.org/software/sed/
Task: minimal
Supported: 5y
Download-Size: 182 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Description: GNU stream editor for filtering/transforming text
sed reads the specified files or the standard input if no
files are specified, makes editing changes according to a
list of commands, and writes the results to the standard
output.
root@u1804:~#
root@u1804:~# apt install --only-upgrade sed
Reading package lists... Done
Building dependency tree
Reading state information... Done
sed is already the newest version (4.4-2).
0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.
root@u1804:~#









share|improve this question














I want to try the newest sed utility on Ubuntu Server 18.04. I've tried below command but still not able to upgrade it. How can I do that?



root@u1804:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Fetched 311 kB in 7s (47.3 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
97 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@u1804:~#
root@u1804:~# apt show sed
Package: sed
Version: 4.4-2
Priority: required
Essential: yes
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Clint Adams <clint@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 328 kB
Pre-Depends: libc6 (>= 2.14), libselinux1 (>= 1.32)
Homepage: https://www.gnu.org/software/sed/
Task: minimal
Supported: 5y
Download-Size: 182 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Description: GNU stream editor for filtering/transforming text
sed reads the specified files or the standard input if no
files are specified, makes editing changes according to a
list of commands, and writes the results to the standard
output.
root@u1804:~#
root@u1804:~# apt install --only-upgrade sed
Reading package lists... Done
Building dependency tree
Reading state information... Done
sed is already the newest version (4.4-2).
0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.
root@u1804:~#






apt upgrade sed






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 5 at 10:47









Ogrish ManOgrish Man

1626




1626













  • You really should not be logged in as root. Really. And you should upgrade those 97 packages.

    – fkraiem
    Jan 5 at 12:06











  • Thanks for your suggestion. I'll take it and upgrade the packages.

    – Ogrish Man
    Jan 5 at 12:57











  • Why do you need an updated sed?

    – mdd
    Jan 5 at 17:26



















  • You really should not be logged in as root. Really. And you should upgrade those 97 packages.

    – fkraiem
    Jan 5 at 12:06











  • Thanks for your suggestion. I'll take it and upgrade the packages.

    – Ogrish Man
    Jan 5 at 12:57











  • Why do you need an updated sed?

    – mdd
    Jan 5 at 17:26

















You really should not be logged in as root. Really. And you should upgrade those 97 packages.

– fkraiem
Jan 5 at 12:06





You really should not be logged in as root. Really. And you should upgrade those 97 packages.

– fkraiem
Jan 5 at 12:06













Thanks for your suggestion. I'll take it and upgrade the packages.

– Ogrish Man
Jan 5 at 12:57





Thanks for your suggestion. I'll take it and upgrade the packages.

– Ogrish Man
Jan 5 at 12:57













Why do you need an updated sed?

– mdd
Jan 5 at 17:26





Why do you need an updated sed?

– mdd
Jan 5 at 17:26










2 Answers
2






active

oldest

votes


















5














Note: the latest version of GNU sed at the time of writing is 4.7, not 4.5.



Here is an alternative option: compile directly from the source tarball, using two very useful features of GNU source packages.




  • You can install your new version of sed under any other name you want, so that it will not interfere with your current sed; in this answer I will use sed47.

  • The make uninstall command is supported, which allows you to cleanly uninstall it if you no longer need it.


First install all the build dependencies



sudo apt-get build-dep sed


Get the source and extract



cd
wget ftp://ftp.gnu.org/gnu/sed/sed-4.7.tar.xz
tar xf sed-4.7.tar.xz
rm sed-4.7.tar.xz # optional
cd sed-4.7


Configure, build and install. Note the --program-suffix parameter to configure, which tells the build system to append 47 to the name of all executables.



./configure --program-suffix=47
make
sudo make install


You can now use the new sed with the command sed47, consult its manual page with man sed47, etc. When/if you want to uninstall it, do



cd ~/sed-4.7
sudo make uninstall


If you have deleted the sed-4.7 directory, you can recreate it by repeating the installation instructions above (at least up to make).



If you want to use it as your "main" version of sed, you can create an alias:



alias sed=sed47


In this case I recommend subscribing to the info-gnu mailing list to get announcements about new releases, which may contain important bug fixes.






share|improve this answer


























  • Thanks for your suggestion! I'll give it a try.

    – Ogrish Man
    Jan 5 at 12:55



















2














The sed application is not comprehensive, so you can
get version 4.5 from Ubuntu 18.10 (cosmic) repository.



Usually this method is not recommended, but you can proceed if you are sure (you will not get security updates for this package installed this way):



wget http://mirrors.kernel.org/ubuntu/pool/main/s/sed/sed_4.5-1_amd64.deb
sudo apt-get install ./sed_4.5-1_amd64.deb


As the result this packages will be listed as locally installed.






share|improve this answer


























  • Thanks for the answer. Will this replace the 4.4-2 version or install side by side? If it's side by side, which one it runs when I type sed?

    – Ogrish Man
    Jan 5 at 11:04











  • BTW, I saw "» Ubuntu » Packages » cosmic (18.10) » utils » sed" in the page you mentioned. So it should be a Ubuntu 18.10 package, not 19.04.

    – Ogrish Man
    Jan 5 at 11:06











  • This version will overwrite existing one. This is how APT works. So for sed --version you will get 4.5. Thanks, fixed typo.

    – N0rbert
    Jan 5 at 11:06













  • I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.

    – fkraiem
    Jan 5 at 11:22











  • @fkraiem thanks, added this in bold. But also need to mention that installation from source for example has the same caveat...

    – N0rbert
    Jan 5 at 11:25













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107139%2fhow-to-upgrade-sed-to-4-5-on-ubuntu-server-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














Note: the latest version of GNU sed at the time of writing is 4.7, not 4.5.



Here is an alternative option: compile directly from the source tarball, using two very useful features of GNU source packages.




  • You can install your new version of sed under any other name you want, so that it will not interfere with your current sed; in this answer I will use sed47.

  • The make uninstall command is supported, which allows you to cleanly uninstall it if you no longer need it.


First install all the build dependencies



sudo apt-get build-dep sed


Get the source and extract



cd
wget ftp://ftp.gnu.org/gnu/sed/sed-4.7.tar.xz
tar xf sed-4.7.tar.xz
rm sed-4.7.tar.xz # optional
cd sed-4.7


Configure, build and install. Note the --program-suffix parameter to configure, which tells the build system to append 47 to the name of all executables.



./configure --program-suffix=47
make
sudo make install


You can now use the new sed with the command sed47, consult its manual page with man sed47, etc. When/if you want to uninstall it, do



cd ~/sed-4.7
sudo make uninstall


If you have deleted the sed-4.7 directory, you can recreate it by repeating the installation instructions above (at least up to make).



If you want to use it as your "main" version of sed, you can create an alias:



alias sed=sed47


In this case I recommend subscribing to the info-gnu mailing list to get announcements about new releases, which may contain important bug fixes.






share|improve this answer


























  • Thanks for your suggestion! I'll give it a try.

    – Ogrish Man
    Jan 5 at 12:55
















5














Note: the latest version of GNU sed at the time of writing is 4.7, not 4.5.



Here is an alternative option: compile directly from the source tarball, using two very useful features of GNU source packages.




  • You can install your new version of sed under any other name you want, so that it will not interfere with your current sed; in this answer I will use sed47.

  • The make uninstall command is supported, which allows you to cleanly uninstall it if you no longer need it.


First install all the build dependencies



sudo apt-get build-dep sed


Get the source and extract



cd
wget ftp://ftp.gnu.org/gnu/sed/sed-4.7.tar.xz
tar xf sed-4.7.tar.xz
rm sed-4.7.tar.xz # optional
cd sed-4.7


Configure, build and install. Note the --program-suffix parameter to configure, which tells the build system to append 47 to the name of all executables.



./configure --program-suffix=47
make
sudo make install


You can now use the new sed with the command sed47, consult its manual page with man sed47, etc. When/if you want to uninstall it, do



cd ~/sed-4.7
sudo make uninstall


If you have deleted the sed-4.7 directory, you can recreate it by repeating the installation instructions above (at least up to make).



If you want to use it as your "main" version of sed, you can create an alias:



alias sed=sed47


In this case I recommend subscribing to the info-gnu mailing list to get announcements about new releases, which may contain important bug fixes.






share|improve this answer


























  • Thanks for your suggestion! I'll give it a try.

    – Ogrish Man
    Jan 5 at 12:55














5












5








5







Note: the latest version of GNU sed at the time of writing is 4.7, not 4.5.



Here is an alternative option: compile directly from the source tarball, using two very useful features of GNU source packages.




  • You can install your new version of sed under any other name you want, so that it will not interfere with your current sed; in this answer I will use sed47.

  • The make uninstall command is supported, which allows you to cleanly uninstall it if you no longer need it.


First install all the build dependencies



sudo apt-get build-dep sed


Get the source and extract



cd
wget ftp://ftp.gnu.org/gnu/sed/sed-4.7.tar.xz
tar xf sed-4.7.tar.xz
rm sed-4.7.tar.xz # optional
cd sed-4.7


Configure, build and install. Note the --program-suffix parameter to configure, which tells the build system to append 47 to the name of all executables.



./configure --program-suffix=47
make
sudo make install


You can now use the new sed with the command sed47, consult its manual page with man sed47, etc. When/if you want to uninstall it, do



cd ~/sed-4.7
sudo make uninstall


If you have deleted the sed-4.7 directory, you can recreate it by repeating the installation instructions above (at least up to make).



If you want to use it as your "main" version of sed, you can create an alias:



alias sed=sed47


In this case I recommend subscribing to the info-gnu mailing list to get announcements about new releases, which may contain important bug fixes.






share|improve this answer















Note: the latest version of GNU sed at the time of writing is 4.7, not 4.5.



Here is an alternative option: compile directly from the source tarball, using two very useful features of GNU source packages.




  • You can install your new version of sed under any other name you want, so that it will not interfere with your current sed; in this answer I will use sed47.

  • The make uninstall command is supported, which allows you to cleanly uninstall it if you no longer need it.


First install all the build dependencies



sudo apt-get build-dep sed


Get the source and extract



cd
wget ftp://ftp.gnu.org/gnu/sed/sed-4.7.tar.xz
tar xf sed-4.7.tar.xz
rm sed-4.7.tar.xz # optional
cd sed-4.7


Configure, build and install. Note the --program-suffix parameter to configure, which tells the build system to append 47 to the name of all executables.



./configure --program-suffix=47
make
sudo make install


You can now use the new sed with the command sed47, consult its manual page with man sed47, etc. When/if you want to uninstall it, do



cd ~/sed-4.7
sudo make uninstall


If you have deleted the sed-4.7 directory, you can recreate it by repeating the installation instructions above (at least up to make).



If you want to use it as your "main" version of sed, you can create an alias:



alias sed=sed47


In this case I recommend subscribing to the info-gnu mailing list to get announcements about new releases, which may contain important bug fixes.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 5 at 13:57

























answered Jan 5 at 11:45









fkraiemfkraiem

9,05932031




9,05932031













  • Thanks for your suggestion! I'll give it a try.

    – Ogrish Man
    Jan 5 at 12:55



















  • Thanks for your suggestion! I'll give it a try.

    – Ogrish Man
    Jan 5 at 12:55

















Thanks for your suggestion! I'll give it a try.

– Ogrish Man
Jan 5 at 12:55





Thanks for your suggestion! I'll give it a try.

– Ogrish Man
Jan 5 at 12:55













2














The sed application is not comprehensive, so you can
get version 4.5 from Ubuntu 18.10 (cosmic) repository.



Usually this method is not recommended, but you can proceed if you are sure (you will not get security updates for this package installed this way):



wget http://mirrors.kernel.org/ubuntu/pool/main/s/sed/sed_4.5-1_amd64.deb
sudo apt-get install ./sed_4.5-1_amd64.deb


As the result this packages will be listed as locally installed.






share|improve this answer


























  • Thanks for the answer. Will this replace the 4.4-2 version or install side by side? If it's side by side, which one it runs when I type sed?

    – Ogrish Man
    Jan 5 at 11:04











  • BTW, I saw "» Ubuntu » Packages » cosmic (18.10) » utils » sed" in the page you mentioned. So it should be a Ubuntu 18.10 package, not 19.04.

    – Ogrish Man
    Jan 5 at 11:06











  • This version will overwrite existing one. This is how APT works. So for sed --version you will get 4.5. Thanks, fixed typo.

    – N0rbert
    Jan 5 at 11:06













  • I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.

    – fkraiem
    Jan 5 at 11:22











  • @fkraiem thanks, added this in bold. But also need to mention that installation from source for example has the same caveat...

    – N0rbert
    Jan 5 at 11:25


















2














The sed application is not comprehensive, so you can
get version 4.5 from Ubuntu 18.10 (cosmic) repository.



Usually this method is not recommended, but you can proceed if you are sure (you will not get security updates for this package installed this way):



wget http://mirrors.kernel.org/ubuntu/pool/main/s/sed/sed_4.5-1_amd64.deb
sudo apt-get install ./sed_4.5-1_amd64.deb


As the result this packages will be listed as locally installed.






share|improve this answer


























  • Thanks for the answer. Will this replace the 4.4-2 version or install side by side? If it's side by side, which one it runs when I type sed?

    – Ogrish Man
    Jan 5 at 11:04











  • BTW, I saw "» Ubuntu » Packages » cosmic (18.10) » utils » sed" in the page you mentioned. So it should be a Ubuntu 18.10 package, not 19.04.

    – Ogrish Man
    Jan 5 at 11:06











  • This version will overwrite existing one. This is how APT works. So for sed --version you will get 4.5. Thanks, fixed typo.

    – N0rbert
    Jan 5 at 11:06













  • I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.

    – fkraiem
    Jan 5 at 11:22











  • @fkraiem thanks, added this in bold. But also need to mention that installation from source for example has the same caveat...

    – N0rbert
    Jan 5 at 11:25
















2












2








2







The sed application is not comprehensive, so you can
get version 4.5 from Ubuntu 18.10 (cosmic) repository.



Usually this method is not recommended, but you can proceed if you are sure (you will not get security updates for this package installed this way):



wget http://mirrors.kernel.org/ubuntu/pool/main/s/sed/sed_4.5-1_amd64.deb
sudo apt-get install ./sed_4.5-1_amd64.deb


As the result this packages will be listed as locally installed.






share|improve this answer















The sed application is not comprehensive, so you can
get version 4.5 from Ubuntu 18.10 (cosmic) repository.



Usually this method is not recommended, but you can proceed if you are sure (you will not get security updates for this package installed this way):



wget http://mirrors.kernel.org/ubuntu/pool/main/s/sed/sed_4.5-1_amd64.deb
sudo apt-get install ./sed_4.5-1_amd64.deb


As the result this packages will be listed as locally installed.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 5 at 11:25

























answered Jan 5 at 11:01









N0rbertN0rbert

24.2k850114




24.2k850114













  • Thanks for the answer. Will this replace the 4.4-2 version or install side by side? If it's side by side, which one it runs when I type sed?

    – Ogrish Man
    Jan 5 at 11:04











  • BTW, I saw "» Ubuntu » Packages » cosmic (18.10) » utils » sed" in the page you mentioned. So it should be a Ubuntu 18.10 package, not 19.04.

    – Ogrish Man
    Jan 5 at 11:06











  • This version will overwrite existing one. This is how APT works. So for sed --version you will get 4.5. Thanks, fixed typo.

    – N0rbert
    Jan 5 at 11:06













  • I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.

    – fkraiem
    Jan 5 at 11:22











  • @fkraiem thanks, added this in bold. But also need to mention that installation from source for example has the same caveat...

    – N0rbert
    Jan 5 at 11:25





















  • Thanks for the answer. Will this replace the 4.4-2 version or install side by side? If it's side by side, which one it runs when I type sed?

    – Ogrish Man
    Jan 5 at 11:04











  • BTW, I saw "» Ubuntu » Packages » cosmic (18.10) » utils » sed" in the page you mentioned. So it should be a Ubuntu 18.10 package, not 19.04.

    – Ogrish Man
    Jan 5 at 11:06











  • This version will overwrite existing one. This is how APT works. So for sed --version you will get 4.5. Thanks, fixed typo.

    – N0rbert
    Jan 5 at 11:06













  • I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.

    – fkraiem
    Jan 5 at 11:22











  • @fkraiem thanks, added this in bold. But also need to mention that installation from source for example has the same caveat...

    – N0rbert
    Jan 5 at 11:25



















Thanks for the answer. Will this replace the 4.4-2 version or install side by side? If it's side by side, which one it runs when I type sed?

– Ogrish Man
Jan 5 at 11:04





Thanks for the answer. Will this replace the 4.4-2 version or install side by side? If it's side by side, which one it runs when I type sed?

– Ogrish Man
Jan 5 at 11:04













BTW, I saw "» Ubuntu » Packages » cosmic (18.10) » utils » sed" in the page you mentioned. So it should be a Ubuntu 18.10 package, not 19.04.

– Ogrish Man
Jan 5 at 11:06





BTW, I saw "» Ubuntu » Packages » cosmic (18.10) » utils » sed" in the page you mentioned. So it should be a Ubuntu 18.10 package, not 19.04.

– Ogrish Man
Jan 5 at 11:06













This version will overwrite existing one. This is how APT works. So for sed --version you will get 4.5. Thanks, fixed typo.

– N0rbert
Jan 5 at 11:06







This version will overwrite existing one. This is how APT works. So for sed --version you will get 4.5. Thanks, fixed typo.

– N0rbert
Jan 5 at 11:06















I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.

– fkraiem
Jan 5 at 11:22





I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.

– fkraiem
Jan 5 at 11:22













@fkraiem thanks, added this in bold. But also need to mention that installation from source for example has the same caveat...

– N0rbert
Jan 5 at 11:25







@fkraiem thanks, added this in bold. But also need to mention that installation from source for example has the same caveat...

– N0rbert
Jan 5 at 11:25




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107139%2fhow-to-upgrade-sed-to-4-5-on-ubuntu-server-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Cabo Verde

Gyllenstierna