Want to upgrade coreutils on Ubuntu 10.10
Hi,
I've got bash 4.1.5(1) at the moment. I had bash 4.1.7(2) version in my university pc. Certain commands aren't working as it should in my version. Could anyone please tell me how to install bash 4.1.7(2) version in my pc? I'm using ubuntu 10.10 OS. |
Quote:
Seriously, have you tried enabling the "universe" ubuntu repository or whatever it is called, to see what version Bash is at? |
Quote:
what commands ??? What are you doing ? is it a script ? or a program? |
Yes, as John VV pointed out there should not be many differences between 4.1.5 and 4.1.7 since it is a minor release, usually to fix bugs. Please, post an example of what doesn't work with the older version.
|
I doubt (really really doubt) that bash is your problem. Please, give us details about the symptoms.
|
sort -d MEMORY | uniq -c | sort -r >FILE1
The contents in the MEMORY file aren't sorted right. |
Neither `sort` nor `uniq` are bash built-in commands. Therefore, if the results of the commands you gave above, differ on two different machines, then it is because `sort` or `uniq` are different, or the file MEMORY is different.
|
Quote:
|
What precisely *is* the problem?
Please, either explain the sorting difference with such precision that there can be no mistaking it, or show us (copy + paste) the original input file, and then show us (copy + paste) the difference in the sorted output of both machines, so we can see what's what. In case it becomes relevant, also post the versions of each of the tools in question, on each machine. |
Quote:
sort --version sort (GNU coreutils) 8.5 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. thats the version of sort in the university pc. i want to change the version (whatever it may be) of sort in my pc to the one in the university pc. excuse my noobiness for turning this simple question into a complicated one. |
OK, for the simple question of "how to change version of `sort`" - on Ubuntu, the first/best method would be your package manager. I don't use Ubuntu, so if there's a way to use your Synaptic package manager, or apt-get, to install a specific version of a package, someone else will need to guide you on that, or you'll have to poke around and figure it out yourself. Note that the coreutils package contains a lot more than just `sort` and `uniq`, so trying to upgrade this is probably not the most ideal thing to do anyways. Before trying this, I would be absolutely, positively certain that doing it is both necessary, and practical, to accomplish whatever you're trying to do. I don't believe it is.
If you can't use the package manager, then you're looking at building coreutils from source, making a package, and upgrading or installing it manually. And if there's a chance frigging up your machine with the first method, then the chance is tenfold greater using this method. Again, I question whether this is really necessary to accomplish your goal, but hey, it's your machine. EDIT: By the way, both above suggestions apply equally well (or not) for bash also, if you want to upgrade it too. When you are able (i.e. you have access to both or the other machine) please show us how the outputs differ on the two machines after running your sort command pipeline. |
Quote:
|
I suggest you update your thread title, maybe something more like:
Code:
Want to upgrade coreutils on Ubuntu 10.10 Cheers & good luck! |
Quote:
|
Quote:
Click "Edit" and then "Advanced" on your first post. Then on that "Advanced Editor" page, change the title. :) |
All times are GMT -5. The time now is 11:12 AM. |