Programming :: Source Code To Get The Location Of Installed Files After Rpm Installation
Jul 25, 2011The rpm command to get all the list of all installed file location after rpm installation is rpm -ql <rpm file-name>
View 7 RepliesThe rpm command to get all the list of all installed file location after rpm installation is rpm -ql <rpm file-name>
View 7 RepliesWhere do i found source code of c library files in ubuntu.
View 2 Replies View RelatedI'm about to recompile PHP from source and was planning to download the source code to my Ubuntu machine. Is there a standard place where all the source code goes? I know that PHP has many dependencies and would like to hopefully put it in the right place so as to satisfy as many as possible.
View 6 Replies View RelatedI have installed some applications thru 'apt-get' command. I found that it is much different with Windows where normally the installed program is in one folder while in Ubuntu, the program will located in many folders. I wonder whether I can get the full source code for the application I have installed thru 'apt-get'? Where to locate them?
This is because I have faced problem in using the Kphone installed thru 'apt-get' and installed thru compilation of source code from tarball. I get quite bad voice quality when I called using Kphone SI 'sudo make install' from the source tarball downloaded from sourceforge.net. However, good voice quality is obtained when I used Kphone installed thru 'sudo apt-get' command. Is that the source code different or is that because of Kphone is differs with Kphone SI?
Is there a method at the command line to copy files from one location to another and retain the source files group and user?I'm migrating some MySQL files from one machine to another.I want to back-up the original files in the directory presently. They have owner:group of mysql, some have owner:group root:mysql and so on. To copy them under cli or Nautilus everything changes to root for I execute sudo cp or gksudo nautilus and copy via gui.
Since it is MySQL data I could simply do a dump of the database and restore it on the other machine. But there's about 20 db's and I want to do this via a copy for it will be faster - at least that is what I think.
I install program from source code,how to uninstall it?
I use Yum but not found my program for uninstall.
I recently downloaded grub2 source code for my F13 installation and it compiled and installed perfectly, but when I rebooted nothing had happened and grub was still version .97. Is there something I didn't do?
View 1 Replies View RelatedI've tried to use google to find this, and all I find is M$ SAL and some annotation standard for java, neither of which is anything like what I'm looking for.
I am pouring over someone else's source code, and want to be able to take notes on it, saving those notes in a separate text file that I can grep, open in a text editor, etc. I want each annotation line to include a line number (or range of lines) so it's easy to know what part of the code it refers to.
I could do this by hand, but it would be nice if a program existed to read and write such a file format. It could be similar to Kompare, only with editable notes on one side and source on the other, linked together with colored bands.
Does such a thing exist?
Cosme Zamudio and I are discussing a possible file format and an Android app - [url]
Where can I find the top command source code... I got it from "http://procps.sourceforge.net/index.html" but it seems for Solaris. where can I get the source code for top commend running on Linux????
View 3 Replies View RelatedIn particular i'd like to know where is the kernel source code in slackware 13.
View 2 Replies View RelatedDoes anyone have source code on Email parsing in C++
View 1 Replies View RelatedI found on the Internet a rough suggestion to debug code which says to add a line:
An example shows this lists the lines of source that do work.
I do not know where these lines are supposed to go and whether the "notdeadyet" should be a call to a subroutine or what. I only found that "%define" is used to link to external files, so I am confused because what I tried did not work.
(I am unable to use (and learn) any debugging tool for another few weeks and I'd like to progress on this If I can.)
I just want to see how the command line such as : "cat", "split", "ls"...ect source code ? Are they written in C or other language ? I don't know where to search those?
View 6 Replies View RelatedFor one of my class projects, we have to analyze a usb keyboard driver source code and be able to understand it and present it to the class. Me and a few other people are working together by breaking up the code into sections so each person can analyze a section of code.Now I've ran into a section of this code that I am a little confused about. It seems fairly simple but I just wanted to double check since I wasn't able to find a solid answer.
Code:
static const unsigned char usb_kbd_keycode[256] = {
0, 0, 0, 0, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38,
[code]....
I want to modify the source of cd (the 'change directory' command) to do a little extra for me, but I can't seem to find the source code anywhere.. maybe I didn't look for it well enough, and googling "source code cd" and variants of that doesn't exactly help... I was wondering if anyone knew where I could find the src?
View 14 Replies View RelatedWhere can I get the source code of quick thread?
View 1 Replies View RelatedI have no preior experience about to installation procedure in linux.currently i am using red hat linux which normally support rpm.I have to download a software from net which have extention like blablabla.tar.gz or blablabla.bz2.Normally most softwares can be complied in installed in three simple steps
./configure
Make command
Make install
I have not use these commands i just have a bit knowledge about it which i have mentioned here. how to extract sourse code fine and then compile and at last installed in the pc.
I'm investigating how to copy a file located in my file system into another device. I googled to find a solution for my case but I didn't find anything. My original problem was to find a way to permit my code to move a file into a USB device. I wonder If is there a way to implement the cp command or some mechanism that permits my code to interact with between the file system on my computer and the second one on USB external driver (FAT32) ?
View 3 Replies View RelatedI have a problem in programing pseudo terminal. In the book APUE (advanced programing in the unix environment) in chapter 15.4: coprocess gives an example of using pipe to operate another program, that provide its input and read its output: Figure 15.18. Figure 15.19 is filter to add two numbers using standard IO. The author said that you must flush the IO buffer in the program which are operated through pipe by another program, however, we cannot add fflush to the source code and re-compile the whole program if we need to use it in another process. It said that pseudo terminal can solve this problem, but I have tried in fedora12 with forkpty call and fail. Source code as follows:
The main process:
Code:
#include "common.h"
#define LINESIZE 256
int main()
{
int fd[2];
pid_t pid;
if( socketpair(AF_UNIX, SOCK_STREAM, 0, fd)<0 ) {
perror("create socket error");
exit(1);
}
int master;
struct termios tm;
if( tcgetattr(STDIN_FILENO, &tm)<0 ) {
perror("tcgetattr error");
exit(3);
}
struct winsize size;
if( ioctl(STDIN_FILENO, TIOCGWINSZ, (char*)&size)<0 ) {
perror("ioctl error");
exit(4);
}
setbuf(stdout, NULL);
pid=forkpty(&master, NULL, &tm, &size);
if( pid<0 ) {
perror("create process error");
exit(2);
}
else if(pid>0) {//parent
close(fd[1]);
char line[LINESIZE];
memset(line, 0, LINESIZE);
while( fgets(line, LINESIZE, stdin)!=NULL ) {
write(fd[0], line, strlen(line));
memset(line, 0, LINESIZE);
int n=read(fd[0], line, LINESIZE);
if(n>=0) line[n]=0;
printf("%s", line);
memset(line, 0, LINESIZE);
}
} else {//child
close(fd[0]);
if( fd[1]!=STDIN_FILENO ) {
if(dup2(fd[1], STDIN_FILENO)!=STDIN_FILENO) {
perror("dup2 error");
exit(1);
}
}
if( fd[1]!=STDOUT_FILENO) {
if(dup2(fd[1], STDOUT_FILENO)!=STDOUT_FILENO) {
perror("dup2 error");
exit(2);
}
}
close(fd[1]);
if(execl("./add", "add", (char*)0)<0) {
perror("exec error");
exit(3);
}
exit(0);
}
//parent
wait(NULL);
return 0;
}
The add program reads a line and get two numbers and return the sum of them.
Code:
#include "common.h"
int main() { int n1, n2;
char line[256];
memset(line, 0, 256);
while( fgets(line, 256, stdin)!=NULL) {
sscanf(line, "%d%d", &n1, &n2);
printf("%d", n1+n2);
fflush(NULL); /*the program does not work without this sentence why?*/
memset(line, 0, 256); } return 0; }
running a java application in a remote site,and I would like to debug the application. I'm using jdb, and, due to network architecture, I can only use jdb do debug in text-mode. To debug in text-mode I use the command: jdb -attach remotesite: port. At this point this is ok. Now I would like to attach the source code to the jdb. I tried the command
jdb -attach remotesite: port ~/src/org/path/file.java
to attach the source code to the remote debug to. But it doesn't work. In jdb, I try the command use ~/src/org/path/file.java but it doesn't work either. How can I attach the source code to the remote debug?
please i try to compile the below code on ubuntu with g++ but i was getting an error message
fig03_05.cpp:10: error: new types may not be defined in a return type
fig03_05.cpp:10: note: (perhaps a semicolon is missing after the definition of �GradeBook�)
fig03_05.cpp:32: error: two or more data types in declaration of �main�
[code]...
I had made some modifications in the source code of a software called "HomeBank". I'm not able to make a setup file using "Inno setup".how to create an .EXE file for the source code to execute.
View 2 Replies View Relatedi am trying to generate a linux executable data (bin data) from my java source code.
View 4 Replies View RelatedI want to find a simple and quick way to permit my application to bring a file located in my file system and write it into an external USB device. I have to use Bulk Transfer Only mode that means to use stream of characters only. I looked through the LibUsb library using it in my IDE I can transmit a string. To transfer a whole file I suppose I've to dodge the file system building a char sequence that permits to recognise a file in the file system and to put it into the usb device.
View 1 Replies View RelatedI've never really taken advantage of Linux being open source before but I was wondering how the copy and paste functions look like. So far I have found out that they are handled by the X Window System (by reading this thread).But I don't seem to get much further than that.
View 1 Replies View RelatedI am doing a project on page replacement algorithms.... Can anyone point out the the source code for page swapping in linux kernel source tree.(I am using 2.6.31 kernel on a 32 bit x86 machine).
View 1 Replies View RelatedI installed fedora 12 very recently after which I installed a few files. I don't know where these files get installed. Is there a default location for newly installed files?
If there is one, is it possible to change the location?
I have read where C is first converted to Assembly before its final compilation to binary. Is there a way to do this with Bash commands? I would like the understanding that Assembly allows to Bash somehow.
View 14 Replies View RelatedI found a strange problem when I use gdb in eclipse to debug. When I step in the program, the register RIP(I'm using x86_64 machine and that's EIP in 32 bit mode) shows correctly but the line stepping in the source code may be far from the correct line. For example, when there is no loop in the source code, the RIP keeps on increasing and the current instruction pointer goes back to several lines back. I'm sure the source code is the right one because I when I checked the memory and local variables after several lines the values are all correct. The source code has many empty lines and does it matters with GDB?
View 3 Replies View RelatedI want to edit linux kernel source code in MS Visual Studio. I saw the code and these are c files but there is no project file that i open it and whole project opens up. I can open each individual file but not the whole project.
View 13 Replies View Related