How to upgrade sed to 4.5 on Ubuntu Server 18.04?
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
New contributor
add a comment |
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
New contributor
You really should not be logged in as root. Really. And you should upgrade those 97 packages.
– fkraiem
2 days ago
Thanks for your suggestion. I'll take it and upgrade the packages.
– Ogrish Man
2 days ago
Why do you need an updated sed?
– mdd
2 days ago
add a comment |
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
New contributor
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
apt upgrade sed
New contributor
New contributor
New contributor
asked 2 days ago
Ogrish ManOgrish Man
1423
1423
New contributor
New contributor
You really should not be logged in as root. Really. And you should upgrade those 97 packages.
– fkraiem
2 days ago
Thanks for your suggestion. I'll take it and upgrade the packages.
– Ogrish Man
2 days ago
Why do you need an updated sed?
– mdd
2 days ago
add a comment |
You really should not be logged in as root. Really. And you should upgrade those 97 packages.
– fkraiem
2 days ago
Thanks for your suggestion. I'll take it and upgrade the packages.
– Ogrish Man
2 days ago
Why do you need an updated sed?
– mdd
2 days ago
You really should not be logged in as root. Really. And you should upgrade those 97 packages.
– fkraiem
2 days ago
You really should not be logged in as root. Really. And you should upgrade those 97 packages.
– fkraiem
2 days ago
Thanks for your suggestion. I'll take it and upgrade the packages.
– Ogrish Man
2 days ago
Thanks for your suggestion. I'll take it and upgrade the packages.
– Ogrish Man
2 days ago
Why do you need an updated sed?
– mdd
2 days ago
Why do you need an updated sed?
– mdd
2 days ago
add a comment |
2 Answers
2
active
oldest
votes
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 currentsed
; in this answer I will usesed47
. - 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.
Thanks for your suggestion! I'll give it a try.
– Ogrish Man
2 days ago
add a comment |
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.
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 typesed
?
– Ogrish Man
2 days ago
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
2 days ago
This version will overwrite existing one. This is how APT works. So forsed --version
you will get 4.5. Thanks, fixed typo.
– N0rbert
2 days ago
Thanks again for the clarification!
– Ogrish Man
2 days ago
I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.
– fkraiem
2 days ago
|
show 1 more comment
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
});
}
});
Ogrish Man is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 currentsed
; in this answer I will usesed47
. - 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.
Thanks for your suggestion! I'll give it a try.
– Ogrish Man
2 days ago
add a comment |
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 currentsed
; in this answer I will usesed47
. - 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.
Thanks for your suggestion! I'll give it a try.
– Ogrish Man
2 days ago
add a comment |
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 currentsed
; in this answer I will usesed47
. - 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.
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 currentsed
; in this answer I will usesed47
. - 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.
edited 2 days ago
answered 2 days ago
fkraiemfkraiem
8,80631728
8,80631728
Thanks for your suggestion! I'll give it a try.
– Ogrish Man
2 days ago
add a comment |
Thanks for your suggestion! I'll give it a try.
– Ogrish Man
2 days ago
Thanks for your suggestion! I'll give it a try.
– Ogrish Man
2 days ago
Thanks for your suggestion! I'll give it a try.
– Ogrish Man
2 days ago
add a comment |
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.
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 typesed
?
– Ogrish Man
2 days ago
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
2 days ago
This version will overwrite existing one. This is how APT works. So forsed --version
you will get 4.5. Thanks, fixed typo.
– N0rbert
2 days ago
Thanks again for the clarification!
– Ogrish Man
2 days ago
I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.
– fkraiem
2 days ago
|
show 1 more comment
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.
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 typesed
?
– Ogrish Man
2 days ago
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
2 days ago
This version will overwrite existing one. This is how APT works. So forsed --version
you will get 4.5. Thanks, fixed typo.
– N0rbert
2 days ago
Thanks again for the clarification!
– Ogrish Man
2 days ago
I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.
– fkraiem
2 days ago
|
show 1 more comment
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.
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.
edited 2 days ago
answered 2 days ago
N0rbertN0rbert
21.5k547101
21.5k547101
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 typesed
?
– Ogrish Man
2 days ago
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
2 days ago
This version will overwrite existing one. This is how APT works. So forsed --version
you will get 4.5. Thanks, fixed typo.
– N0rbert
2 days ago
Thanks again for the clarification!
– Ogrish Man
2 days ago
I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.
– fkraiem
2 days ago
|
show 1 more comment
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 typesed
?
– Ogrish Man
2 days ago
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
2 days ago
This version will overwrite existing one. This is how APT works. So forsed --version
you will get 4.5. Thanks, fixed typo.
– N0rbert
2 days ago
Thanks again for the clarification!
– Ogrish Man
2 days ago
I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.
– fkraiem
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
This version will overwrite existing one. This is how APT works. So for
sed --version
you will get 4.5. Thanks, fixed typo.– N0rbert
2 days ago
This version will overwrite existing one. This is how APT works. So for
sed --version
you will get 4.5. Thanks, fixed typo.– N0rbert
2 days ago
Thanks again for the clarification!
– Ogrish Man
2 days ago
Thanks again for the clarification!
– Ogrish Man
2 days ago
I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.
– fkraiem
2 days ago
I would add the usual caveat that if you do this you no longer get automatic bugfix/security upgrades.
– fkraiem
2 days ago
|
show 1 more comment
Ogrish Man is a new contributor. Be nice, and check out our Code of Conduct.
Ogrish Man is a new contributor. Be nice, and check out our Code of Conduct.
Ogrish Man is a new contributor. Be nice, and check out our Code of Conduct.
Ogrish Man is a new contributor. Be nice, and check out our Code of Conduct.
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
You really should not be logged in as root. Really. And you should upgrade those 97 packages.
– fkraiem
2 days ago
Thanks for your suggestion. I'll take it and upgrade the packages.
– Ogrish Man
2 days ago
Why do you need an updated sed?
– mdd
2 days ago