LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-18-2010, 01:53 PM   #1
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Rep: Reputation: 6
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.

Last edited by ghantauke; 11-19-2010 at 10:42 AM.
 
Old 11-18-2010, 02:09 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,782
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
Quote:
Originally Posted by ghantauke View Post
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.
Install fedora 14?

Seriously, have you tried enabling the "universe" ubuntu repository or whatever it is called, to see what version Bash is at?
 
Old 11-19-2010, 03:19 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,819

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
Certain commands aren't working as it should in my version.
????
what commands ???
What are you doing ?
is it a script ?
or a program?
 
Old 11-19-2010, 03:47 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
Old 11-19-2010, 04:35 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
I doubt (really really doubt) that bash is your problem. Please, give us details about the symptoms.
 
Old 11-19-2010, 09:30 AM   #6
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Original Poster
Rep: Reputation: 6
sort -d MEMORY | uniq -c | sort -r >FILE1

The contents in the MEMORY file aren't sorted right.
 
Old 11-19-2010, 09:32 AM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
Old 11-19-2010, 09:37 AM   #8
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by GrapefruiTgirl View Post
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.
File MEMORY are the same for both machines. So it must be 'sort' and 'uniq'. How do i go on about fixing this problem then?
 
Old 11-19-2010, 09:42 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
Old 11-19-2010, 09:56 AM   #10
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by GrapefruiTgirl View Post
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.
at this moment i can't give the exact difference of the two different version since i have only access to one pc. just assuming that it is different at this point will be sufficient. all i want to know is how to change the version of sort.

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.
 
Old 11-19-2010, 10:08 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.

Last edited by GrapefruiTgirl; 11-19-2010 at 12:50 PM.
 
Old 11-19-2010, 10:18 AM   #12
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by GrapefruiTgirl View Post
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.

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.
I want to know how to change it anyway, just for experience. I can't survive being a linux user without knowing how to manage it. Greatly appreciate your effort Grapefruitgirl. Would be grateful if anyone else could help me out.

Last edited by ghantauke; 11-19-2010 at 10:19 AM.
 
Old 11-19-2010, 10:26 AM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
I suggest you update your thread title, maybe something more like:
Code:
Want to upgrade coreutils on Ubuntu 10.10
That'll maybe help attract the attention of Ubuntu users who can help you.

Cheers & good luck!
 
Old 11-19-2010, 10:33 AM   #14
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by GrapefruiTgirl View Post
I suggest you update your thread title, maybe something more like:
Code:
Want to upgrade coreutils on Ubuntu 10.10
That'll maybe help attract the attention of Ubuntu users who can help you.

Cheers & good luck!
Interesting suggestion BUT!! how do i do that?
 
Old 11-19-2010, 10:33 AM   #15
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by ghantauke View Post
Interesting suggestion BUT!! how do i do that?
My apology!

Click "Edit" and then "Advanced" on your first post. Then on that "Advanced Editor" page, change the title.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bash version arazortech Linux - Newbie 2 08-16-2010 03:33 PM
Yum is installing an old version of subversion -- how can I get the latest version? dhjdhj Linux - Newbie 6 06-18-2009 02:34 AM
LXer: When Features Attack: Bash Version 4.0.0(1)-rc1 LXer Syndicated Linux News 0 02-12-2009 07:50 AM
Parse RPM version string in Bash jimwelc Linux - Newbie 1 02-28-2005 06:22 PM
uninstalling old software version and installing the new version RottenMutt Linux - Newbie 4 07-11-2003 12:32 AM


All times are GMT -5. The time now is 02:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration