General :: What Is The Function Of Createrepo - Command While Installing Yum
Jan 16, 2011I m using Redhat linux 5.1, I want to know what is the function of 'createrepo .' command while installing yum.
View 1 RepliesI m using Redhat linux 5.1, I want to know what is the function of 'createrepo .' command while installing yum.
View 1 Replieswhat is the function of resize2fs command and how this command works internally , how it is related to inodenumber or does it format the partition
View 6 Replies View Relatedi tried to install OpenSuse that I got via a download link that a friend sent me, but its a LiveCD without the installation function at the bootstartup. the only given options are:
Gnome3
Failsafe-Gnome3
Memory Test
Boot from harddrive
there is no installation option. So after that I just ran Gnome3 as a liveCD instead and attempted to install windows xp from a flash from the LiveCD desktop. Because I cannot install XP from boot (it has no bootsector) But I couldnt get the installation to start, because exe's aren't the same thing in linux.
So I downloaded Ubuntu, When booting from the Ubuntu Disc I get "kernel panic not synching VFS..."
so instead I turned my flash into a pendrive, went into the OpenSuse liveCD and attempted to install Ubuntu from within the Live-CD Desktop. but the only setup files I can see are Exe's, and Im not sure how I would go about installing it otherwise. If you have any advice to get this working, or to get a proper Linux installed on my computer So far I have downloaded:
GNOME_3.i686-1.3.0-Build1.3
ubuntu-11.04-desktop-i386
Windows XP
Just to add. I have also tried to install WINE and Synergy to OpenSuse, but I do not have a clue on how to install them properly. Upon extracting the tar.bz2 files they both give errors.
I had a dream least night in which I was on my computer and I was typing the command Netstat -a in command prompt in Ms-Dos. And I was wondering why it looks so much like a Linux terminal command? This question persisted in my mind after I woke up. So what is the story about it?
View 3 Replies View RelatedI have added mkalias in my .bashrc file as I learnt here
[Code]...
When I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running?
View 3 Replies View RelatedThe first call to "somefunction" works as expected. The function prints "endfunction" and a process in background sleeps 30 seconds. In the second call I thought it should work in the same way, but the script sleeps 30 seconds before it prints "endfunction".Does someone know the reason of this behavior? Is there another way to do a command substitution of a function that has a background process without have to waiting for that process?
View 2 Replies View RelatedTried to run sudo yum update and got this error on two different Fedora machines
Code:
Error: Package: createrepo-0.9.9-4.fc15.noarch (updates)
Requires: yum >= 3.2.29-8
[code]....
As the title says I'm trying to build myself a local RPM mirror. I have multiple laptops and a desktop that use Fedora 11. So I used 'rsync' to setup and sync my directories. I next went on to create my repo with the 'createrepo' function. I run my server backend as FreeBSD so I moved my data over there and setup my 'lighttpd' service.
Everything went fine until I used 'rsync' and synced up my data. Am I supposed to run 'createrepo' after each sync? If so, does anyone else use the same kinda setup, even if not FreeBSD, but a different os other than linux for their server that they run this from? I've been dealing with this for 2 weeks now and finally gave up researching and testing and thought. Not something I'm good at doing. Check my register date and my first post date.
Edit: FreeBSD doesn't have a port or unofficial port for this. I noticed it seems to be written as a python script so thought I could somehow get it to run on FreeBSD with linux emulation.
the function terminates if no key is pressed for 10 consecutive seconds. I tried using the -t option as suggested in some forums, but my version of showkey doesn't have the option of changing the timeout. The options I get are:
-h --helpdisplay this help text
-a --asciidisplay the decimal/octal/hex values of the keys
-s --scancodesdisplay only the raw scan-codes
-k --keycodesdisplay only the interpreted keycodes (default).
Is it possible to write a script to use this function and still keep the function active until an interrupt is recieved?
I've been working in a program in BASH and would like to measure its efficiency in different machines. Of course I am able to display the date at the beginning and at the end of its execution, but I'd rather use some sort of timer function to measure in seconds its speed. Is there any timer function available through command line?
View 6 Replies View RelatedI am writing an expect script and I want to send the command for the print-screen function. So, what is the command? Alternatively, is there some terminal application which may be well suited to take screen-shots via commands from the terminal or automation scripts?
View 2 Replies View RelatedUbuntu is a great operating system. It fast, secured and easy to use when compared to most of other operating Systems. But Ubuntu is not complete without some additional packages. One command make Ubuntu useful for everyday use. To get started, press Ctrl - Alt - T on your keyboard to open Terminal. When Terminal opens, type the command below and press Enter to install. sudo apt-get install ubuntu-restricted-extras Programs that will get installed after running the above command are: MP3, DVD Playback support Microsoft Fonts Java Runtime Flash Player and many codecs that are required to play MP3 and DVDs. (OR) install Ubuntu restricted extras Ubuntu by default, doesn't allow you to play MP3, DVD, Flash or most media formats for legal reasons. You must always install additional programs that will allow you to play those media To install Ubuntu restricted extras go to Ubuntu Software Center from the application launcher. Then search for "Ubuntu Restricted Extras" and Install . It will install commonly used pplications with restricted copyright (mp3,avi,mpeg,True Type,java,Flash,Codecs). Allu John Sudhakar System/Network Administrator
View 1 Replies View RelatedI need to use tr command in my bash script and since it is not found in my linux distribution I tried to install it by using the following command: sudo apt-get install tr
and it spitted out the following error message: E: Couldn't find package tr
what is the command I need to use in Ubuntu linux to install tr and get it working.
If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?
View 5 Replies View RelatedI want to install a program (specifically metasploit), and have it accessible from any directory in the terminal. I have it installed correctly, but I have to travel to the directory it is installed in to run it (by using ./msfconsole ). I want to be able to be in any directory and just run "msfconsole" and have metasploit run. I have to copy the metasploit folder to the /opt/ directory? Maybe the /usr/bin/ directory?
View 3 Replies View RelatedI bought a multifunction stylus sx218 Espon model and I can not run the scanner function. I did some research and found a few solutions and very functional. I hope someone solves the problem. My version of openSUSE 11.2.
View 9 Replies View RelatedCode:
#include <iostream>
using namespace std;
[code]...
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
View 2 Replies View RelatedI'm currently using OpenSuse 11.1 web server. This is bad since 11.1 is no longer supported. the reason why I am using it is because Function set_magic_quotes_runtime() was no longer being used. (so I was told)
That being said, is there a way to get Function set_magic_quotes_runtime() to function on the newer versions of OpenSuSE?
I'm connected to a Linux box through SSH on which I don't have administrative privileges. The command I wish to use is called tree, but it isn't installed. Is there any way I can load the tree program into my home directory and run it without the need to install it system wide?
View 2 Replies View RelatedI looked on the net for such function or example and didin't find anything, thus after having made one i guess it would be legitimate to drop it to see what others thinks of it.
#!/bin/bash
addelementtoarray()
{
local arrayname=$1
[code]....
I am developing a function say my_abc() which does the same thing as kernel function abc(). Now I want that instead of using predefined kernel function kernel starts using my function. It might be possible that the kernel function has been used so many places.
View 7 Replies View RelatedI am trying to install the rpm packages in a file by using "yum" command. The RedHat version is 5.3. This worked on RedHat 4.4, however it errors out when run on RedHat 5.3. Are there any options to include in the command line?
View 3 Replies View RelatedIf you set or export an environment variable in bash, you can unset it. If you set an alias in bash, you can unalias it. But there doesn't seem to be an unfunction.
Consider this (trivial) bash function, for example, set in a .bash_aliases file and read at shell initialization.
function foo () { echo "bar" ; }
How can I clear this function definition from my current shell? (Changing the initialization files or restarting the shell doesn't count.)
I've got a sticky little problem with a bash script. Please consider the following code:
Code:
#! /bin/bash
processArgs() {
echo "Count = $#"
while [[ $# -ne 0 ]]; do
echo $1
shift
done
}
processArgs $* If I call this script with Code: ./script first second third it'll print each of the argument on a new line - exactly what I would expect. However if I call it with
Code: ./script "Single Argument" "Second-Argument" it splits the first argument in two using the space as a delimitor. The problem appears to be the call to processArgs, where $* doesn't honour the quotes around the variables sent to the script.
I'd like a function in my .bashrc file that would allow me to pass text to it and echo the text to a specified file. I know it's simple as "echo 'text' >> file," but ideally, I would want to alias the function so I execute something like:
Code:
user~ $ write 'this is a test' with "write" being the function, and 'this is a test' being echoed to the file. I hope I explained that well enough.
Is there any function to delete a folder which has few files in it ?I tried rimdir() bit it can only delete empty folders; unlink() can not delete directory entries. any other function ?
View 7 Replies View RelatedThese days i try make a simple sniffer for a embedded system. and it need the function of dump all the packets into a file, which can be read by wireshark..etc. First i copy a code called simplesniffer.c from the Internet,and and now I want to add the dumpfile funtion to it. i find some problems.Quote:
/* Come from ---- http://blog.chinaunix.net/u/24474/showart_226419.html */
/* simplesniffer.c */
#include <stdio.h>
[code]...
i have been using turbo C for a while to do programing . can u plz let me know the replacement for clrscr() function in linux
View 1 Replies View Related