Fedora :: Change The Releasever Variable ?

Jul 31, 2010

I was doing a preupgrade from f12 to f13. That was interrupted by a power cut. When I tried to redo it by booting from the grub option, it failed (can't remember the error). I then re-ran preupgrade, but got the "the root for the previously installed system was not found" error even though the UUID was correct and even when I referenced the partion by device - /dev/sda14.

So I decided to go old school:
1. yum update
2. change the repos manually to reference f13
3. yum update

So as it stands these are seemingly the only remaining f12 packages

Code:

But i am guessing due to the interrupted preupgrade, the releasever variable has not been updated. How can I manually do that?

View 6 Replies


ADVERTISEMENT

Fedora :: Yum - Releasever -13 Upgrade Fail

Jun 10, 2010

I was told that this command would upgrade from 12 to 13, while avoiding the boot space problem.

Everything seemed to go well, - all 1691 rpms downloaded to: /var/cache/yum/x86_64/13/fedora/packages/zip-3.0-1.fc13.x86_64.rpm, and then halted with the following message:

I'm not exactly a noobe, but this leaves me clueless. Can I salvage the upgrade?

View 5 Replies View Related

Fedora Installation :: Get The Following Errors From Yum --releasever=14 Distro-sync?

Jun 24, 2011

Just upgraded Fedora 12->13 using yum, on my way to Fedora 15.After upgrade to 13, I rebooted, and all is fine.Began upgrade from 13->14. I get the following errors from yum --releasever=14 distro-sync:

Code:
Error: Package rhpl-0.221-2.i686 (@anaconda-InstallationRepo-200911081854.i386/12)
Requires: libpython2.6.so.1.0

[code].....

View 3 Replies View Related

Ubuntu :: Change String Variable In Awk?

Nov 26, 2010

How to change string variable in awk? for example, I parse with awk script text file named some_name_with_extension.txt

I want to print only some_name in my script

Code:
....
varCompName = FILENAME
print varCompName

How to put not all symbols from FILENAME to variable?

This make my day

In windows I used some of next

Code:
%my_var:~0,-2%

would extract all but the last 2 characters of the my_var variable.

View 2 Replies View Related

Programming :: Variable Name Change In A Loop?

Apr 24, 2010

I am about to move my scripts to the next generation level, so I need some help I am stuck in varying my variable names in a loop. For example:

for user in ben dorothy mike pat
do
[ -r /home/$user ] && let "$user"check=1 || let "$user"check=0

[code]...

View 1 Replies View Related

General :: How To Change The PATH Variable

Mar 12, 2011

I was changing my sudoers file to give permission of using "sudo" command to all root commands, asking for the password. It works, it's fine. The problem I'm having is with the variable PATH to my user, I think.

In terminal:
normal user:

Code:

ataias@ataias-notebook:~/Downloads$ echo $PATH
/usr/local/bin:/bin:/usr/bin
super user:

Code:

root@ataias-notebook:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin

As many commands are in /sbin/, root can use them without writing "/sbin/" but I can't do the same cause it's not in my path.

while root do this:

Code:

shutdown -h now

I should do:

Code:

sudo /sbin/shutdown -h now

and I want to use only

Code:

sudo shutdown -h now

I want to change my user's path variable to make it equal to root's path. how to change it? I don't know many things of shell still.

View 5 Replies View Related

General :: Change PATH Variable

Oct 16, 2010

I want to add my current working directory to the PATH variable and make it permanant in my .bash_profile so I can run my testscript without using the ./ charactors.can this be done?

View 5 Replies View Related

Programming :: Change String Variable In Awk?

Nov 26, 2010

How to change string variable in awk? for example, I parse with awk script text file named some_name_with_extension.txt

I want to print only some_name in my script

Code:
....
varCompName = FILENAME
print varCompName

How to put not all symbols from FILENAME to variable?

[Code].....

View 3 Replies View Related

Programming :: Change Variable In Case Command?

Aug 7, 2010

I want to display 4 options using the case command and refresh the screen when options 1 and 2 are chosen (no changes to the options and you get asked again to chose option), but give a message for option 3 and exit on option 4. I set this up with the script below, but choosing option 1 works and choosing option 2 exits the script.

Code:

#!/bin/bash
#testing options
Option="0"

[code]....

View 7 Replies View Related

Slackware :: Change The $ARCH Variable To X86_64 Too, Right?

Jun 5, 2011

I'm mainly asking beforehand so I won't have to shoot myself in the head twenty minutes from now. I suppose I'll find/figure out one way or the other anyway . Can I just source the 32dev.sh and then run sbopkg -i if the source for the package I want to create isn't 64bit capable? I might need to change the $ARCH variable to x86_64 too, right?

View 1 Replies View Related

General :: Change SHMMAX Variable For Performance Tuning?

Feb 2, 2011

I am using Ubuntu-10.4 and postgresql-8.4.Now I have to change my SHMMAX variable for performance tuning.I have 16 GB.change it permanently and what is the suitable value for the DATABASE Server.

View 1 Replies View Related

Programming :: Put A Variable In The $PS1 Prompt That Will Change Each Time A Command Is Run?

Feb 11, 2011

I would like to put a variable in the $PS1 prompt that will change each time a command is run. I want the color of the $PS1 prompt to change each time a command is run.I know that I can do this:

Code:
PS1="h@w # "
## "#" is changes every time a command is run

[code]....

View 9 Replies View Related

Programming :: Bash - Read Content Of File To Variable And Use This Variable In For Loop ?

Aug 21, 2009

I'm trying to read content of file to variable and use this variable in for loop. The problem is, when I have c++ comment style in file - /*. Spaces in line are also interpreted as separated lines.

For example:

Code:

Changing $files to "$files" eliminate these problems but causes that whole content of variable is treated as one string (one execution of loop).

View 6 Replies View Related

General :: Assign Local Variable Values To Global Variable?

Feb 17, 2011

how to assign a local variable value to a global variable....

View 2 Replies View Related

Programming :: Make A New Variable With The String From The Old Variable Btut Without Any Plus Sign?

Apr 7, 2010

my script has a variable which comes in the form +00.00 +0.00 -00.00 or -0.00 (the numbers can be any in that form) for any that have a + symbol I need to remove the +, but if it has a - symbol it needs to stay.

i need to make a new variable with the string from the old variable btut without any plus sign. I have tried a lot of different ways with no success, each thing I tried either left the + or removed the entire string. I think this should work but doesn't

foo=+12.40
bar=${foo#+}

View 4 Replies View Related

General :: Create An Environment Variable With The PRINTER Variable?

Apr 16, 2011

I am supposed to create an environment variable with the PRINTER variable, which should resolve to the word sales. Would the command be like this?: env PRINTER - NAME=SALES (is this the command to create that variable with resolving the word sales to it?)

View 3 Replies View Related

Software :: Get Variable From Text File Into Bash Variable?

Jun 10, 2009

I have a text file i that has a mailTo: NAME in it. In a bash script i need to extract NAME and put it in a $variable to use. How do i do this?

View 2 Replies View Related

Programming :: Search Within A Variable And Assign The Results To A New Variable?

Apr 25, 2011

how I can search within a variable and assign the results to a new variable. I'll use the following as an example -

cars="Audi BMW Cadillac Chevy Dodge Ferrari Ford Mercedes"
list=`echo ${cars} | egrep -o '<A?+|<C+'`

with the echo command I get the following output assigned to list -

A
C
C

What I'd like to get for output is -

Audi
Cadillac
Chevy

how I could do this regardless of upper/lower case letters?

View 5 Replies View Related

Programming :: Assign Value Of C Variable To Shell Variable?

Apr 28, 2010

included shell script inside c program, and i wanted to assign the value of c variable to shell variable..Can any one please suggest me how to do it?

View 8 Replies View Related

General :: Use The Value Of One Variable To Generate A Name For Another Variable?

Jul 25, 2010

can i use the value of one variable to generate a name for another variable? for example i want to use the counter from a "do while" loop to name and define a variable each time the loop executes. for example

objectnames1=`ls -a`
objectnames2=`ls -a`
etc.

i don't have a script yet but each time through the loop i intend to cd to a particular directory and then define a variable containing a list of each object in that directory as values. for the rest of the script to work, each variable generated has to be unique, and i can't think of a good way to accomplish this.

if using a value from one variable to name another isn't possible, can anyone think of a more elegant solution? i know limited syntax but i'm willing to read up...

View 6 Replies View Related

General :: Sed Substitution Of Variable With A Variable?

Dec 27, 2010

I am trying to alter the character position of residue numbers above 999 in a pdb file.The following script is an attempt to:1) Get all unique pdb residue numbers (in column 5) using awk and assign it to a variable i.2) Loop through all the values in $i and if it is greater than 999, shift that number one character to the right using sed.However, the script only manages to alter the final residue numberCould anyone please advise how I can loop through all values in $i and shift it one character to the right?

#!/bin/bash
# Script to alter position of residue number in pdb file for resid above 999
i=$(awk '{print $5}' wt-test.pdb | uniq)

[code]...

View 6 Replies View Related

Programming :: Assignment To A Variable Variable?

Mar 17, 2011

This loop is part of a bash script which takes multiple arguments.

Code:
for ((i=1;i<=$number;++i)) ; do
offset=$(($i+5))

[code]...

View 3 Replies View Related

Red Hat / Fedora :: How To Extract Certain Strings From A Variable

Mar 18, 2009

I have one question.

Assumed I have have a variable $userlist, it has the following contents:

brownj
smithk
smithk2
smithk3
hynesp
hynesp2
leeb

How can I write a bash script that extracts all the strings smithk, smithk2, smithk3, etc from variable $userlist, and assigns these strings to a new variable?

View 1 Replies View Related

Red Hat / Fedora :: Passing Xml In Mem Or Variable To Xmllint?

Jul 24, 2010

How can I pass xml data from memory or a variable to xmllint that expects a file as input? Or does xmllint have the capabilities to read from stin or a variable?

View 4 Replies View Related

Red Hat / Fedora :: Assign A Variable To A Command?

Sep 10, 2010

I can print a specific line of a file with:$ sed -n '20p' myFileHow can I store it in a variable (in a shell script)?(I wasn't successful with "myVar=sed -n '20p' myFile" for example)

View 2 Replies View Related

Fedora :: Replace A Certain Line Of A File With A Variable?

Nov 26, 2009

I want to replace a certain line of a file, my bash script looks like:

#!/bin/sh
sentence="if [ -e /home/inf/Download/$playlist ]"
sed '4c
$sentence' oldfile > newfile
mv -f newfile oldfile

But the variable $sentence can not be identified in ' ' . And also you can see I just want to update the old file. But the sed command can not save the file for me ,so I need to write them to a new file and over write the new file .

View 14 Replies View Related

Red Hat / Fedora :: Can't Use It For Creating A Path Variable / File Name?

Mar 15, 2010

Originally Posted by Gekitsuu you should be able to do NEWSTRING=$STRING1$STRING2 it works but i can't use it for creating a path variable / file name.

e.g.
$STRING1 = path
$STRING2 = filename
cat $STRING1$STRING2 will not work.
so how to get this working?

View 4 Replies View Related

Fedora :: Add A Variable To Take User Input And Post That Imput?

Sep 25, 2009

I'm sure you all seen how you can use curl to post to you twitter acct. What I'm wondering is how to add a variable to take user input and post that imput.

Code:
#!/usr/bin/perl
"Enter tweet: ";
$msg = <STDIN>;

[Code]...

View 3 Replies View Related

Fedora Servers :: When Passing Variable From One Page To The Next It Gets Lost

Jun 19, 2010

I have installed FC13 on my laptop and set it up as a development server. Here is my issue when passing variable from one page to the next it gets lost. My PHP includes work DB connect string works from the include.

View 1 Replies View Related

Fedora :: Set The Default Java Env Variable To New Installed Location

Sep 7, 2011

I installed new jre in linux. but i when i checked env variable $JAVA, it is showing old version. how to set the default java env variable to new installed location

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved