Software :: How To Get Spec File From Existing Rpm?
Jan 10, 2009
I want to change some thing inside the post install script of an existing rpm.there is any way to create a nearest spec file of this rpm, in order to change a bit the post install script inside this spec and then create again the rpm with the fixed spec file? no body wrote any program that can create spec file(99% identical from the orig spec file?)?
View 4 Replies
ADVERTISEMENT
Jun 29, 2011
I found that "autospec" can construct a spec file. But autospec-0.8-1 is not compatible with python 2.7.1 Moreover autospec seems to be considered as deprecated. Is there a more recent version or some other equivalent utility?
View 3 Replies
View Related
Feb 23, 2011
is it possible to write ksh script in the spec file? the target is after I perform rpm -i my_rpm.rpm according to the spec file , ksh script will do some installation & configuration for example run other script and edit some files
View 5 Replies
View Related
Dec 8, 2008
I'm trying to create a set of rpm files to install the requirements for a program.I found a great utility named cpanspec that will create a spec file for perl modules and have started building rpm files. I was able to create an rpm file for Business::CreditCard as a regular user. Now I'm trying to build another module that requires B::CC, and rpmbuild -ba fails saying that I am missing B::CC. I don't want to install it just to create another rpm file.Is there a way to make rpmbuild "think" that B::CC is installed in the build environment without installing it on the system?
View 1 Replies
View Related
May 5, 2010
I have written a spec file for packaging my application in an rpm, but it reports a conflict when I am trying to update my service script in /etc/init.d/. This is a file that I do need to update/replace so how might I force the rpm to do that?
Code:
Summary: A program that increases WAN performance.
Name: packetsqueezer
Version: 0.3.05
Release: 1
[code]...
View 3 Replies
View Related
Apr 8, 2010
is there a way to specify that I need a 32bit version of a certain library on the "Requires" line of a SPEC file?Since my software contain (a lot of) binaries from other sources (not always RPM compatible) I had to do "AutoReqProv: No" so I can do it manually.Is there a way to explicid say that I need the 32bit version of some library?
View 1 Replies
View Related
Mar 9, 2011
I have inherited our Linux packaging and as the number of versions increase, the number of conflicts is starting to get a bit unmanageable. I believe the easiest way would have been to keep the package names the same and just change the release in the spec file but unfortunately I am past that as a lot of these packages are rolled out to our estate. (I am told there were reasons for not keeping the package name the same and incrementing the version/release)
Is it possible to wildcard conflicts so I don't need to keep adding as new versions are created. For example, instead of using all the conflicts below, have something along the lines of AAtest45* <= 1.4 & BBtest45* <= 1.4 Meaning that all I would need to do was change this to 1.5 at the next release (the packages below version matched the release in the spec file)
[Code]....
View 2 Replies
View Related
Nov 29, 2010
i want to compile the vanilla kernel 2.6.37-rc3, but i want to obtain a .rpm file. I found this guide long time ago (i used it many times) but it use src.rpm package and the contained kernel.spec file have many lines for adding patches. Someone know where can i download a kernel.spec for vanilla kernel or a guide to obtain an rpm file
View 4 Replies
View Related
Oct 13, 2010
In my rpm I need gdbm 32b.when installing on RHEL x86_64 the Reqires section passes with no error since gdbm 64b was found.I need to distinguish between gdbm 64b to gdbm 32b in my spec file.In my spec I use the following :Requires: gdbm = 1.8.0
View 1 Replies
View Related
Feb 8, 2011
i want to move the text of a file to another file,using sed command. how can i do it?
View 1 Replies
View Related
Nov 17, 2008
I have two files list1.cfg and list2.cfg both files contains differentrecords details like
List1.cfg
NAME1:25:C:NAME LINE1:
NAME2:25:C:NAME LINE2:
CITY:25:C:City:
[code]....
Now I want to append contents list2.cfg to list1.cfg(It ispposible using cat list2.cfg >>list1.cfg) but I want to check if content of (record) in list2.cfg is present in list1.cfg then dont append it otherwise append it.
View 1 Replies
View Related
Nov 26, 2010
this is my output when I try to compile samba 4.0.0 alpha 7 in Ubuntu using the spec file provided in the samba packages:
bin/mergedobj/samba-util.o: In function `file_lines_parse':
(.text+0x595c): undefined reference to `_talloc_steal'
bin/mergedobj/samba-util.o: In function `data_blob_talloc_named':[code]....
View 1 Replies
View Related
Mar 8, 2011
I try to write to a file "date > file" but Linux says 'cannot overwrite existing file'. I tried chmod 755 but still cannot write to the file. What should I do?
View 2 Replies
View Related
Oct 21, 2009
How to create a dump of an existing file and how to restore it with command line?
View 6 Replies
View Related
Jun 23, 2010
I have an existing unix user that some how didnt make it into the copy over to our LDAP server. How do I add an existing unix user to an existing LDAP directory? Will ldapadd work? I was under the impression ldapadd required an ldif file to work properly.
View 7 Replies
View Related
Aug 30, 2010
How do you append text to an entry in an existing file? For example, lets say I have a file called "env.logon" in /home/myself/bin that contains the following text:
PATH=/bin:/sbin If I wanted to add, via command line, ":/usr/bin:/usr/sbin" to the PATH= and I
used the "echo" command (echo "PATH=:/usr/bin:/usr/sbin) it would create a second entry and my file would look like:
PATH=/bin:/sbin
PATH=:/usr/bin:/usr/sbin
What I want is for it to look like:
PATH=/bin:/sbin:/usr/bin:/usr/sbin
Is there a way to get this result via command line?
View 3 Replies
View Related
Apr 5, 2010
When I try to save my X configuration file.. it says "Failed to parse existing X config file '/etc/X11/xorg.conf'!"
I've already deleted my current xorg.conf and created a new one using sudo nvidia-xconfig and run NVIDIA X server settings using gksudo nvidia-settings but still can't save..I am using 32-bit Ubuntu 9.10 and my video card is NVIDIA FX 5500..
View 9 Replies
View Related
Jun 15, 2009
I have 2 image files, image 1 which is 16MB, has multiple partitions, where the boot partition has a 2.4 kernel in it, and image 2, which is 32MB, has a single partition with a 2.6 kernel.
I wish to add those extra partitions from image 1, into image 2, either by adding them within the 32MB(which means cutting back on the size of the existing partition), or adding them to the end of the image(which means extending the image beyond 32MB).
The boot partition for both images is ext2, while the rest of the partitions in image 1 is just raw data.
I'm working with these images in Mandriva Linux 2009.
How can I achieve what I want to do? I think it should be with fdisk and/or mkfs but I'm not sure how? I've tried using gparted to regenerate the partitions from a new image file with the following steps:
dd if=/dev/zero of=image.img bs=32M count=1
gparted image.img
Then I created a 30M boot partition. However, I'm not able to create the rest of the partitions as they are smaller than 1MB, which seems to be the min supported. I need precise control of the start/ending sectors of each partition.
View 1 Replies
View Related
Jan 4, 2009
I have recently been given the task of setting up some thirty odd netbooks with F10 and i was wondering if there is a way to generate a kickstart file from the first netbook (my one lol ) that i have setup to our needs so as to use it to create the same install on the rest of the netbooks. i had thought that i could use the anaconda-ks.cfg file in root's home dir but it is not at all representative of the custom package list i chose during the install.
View 8 Replies
View Related
Mar 4, 2010
Is there a way to edit an existing nautilus (fie manager) bookmark?
Invoke from Linux command line:
$ nautilus
Activate connection editor: File>Connect To Server...>
Complete entries in the pop up:
Service Type: [WebDAV (HTTP)]
Server: [localhost]
Port: [8001]
Folder [webdav]
[Code]....
View 1 Replies
View Related
Feb 5, 2010
since i reformatted my new hard drive i have been having issues saving my config file when i tried to save to x configuration file it says: Failed to parse existing X config file '/etc/X11/xorg.conf'.i used to be able to open the file as root and copy over the old x config with the new one but it wont let me even preview the changes until i click save to x configuration file. anyone know how i can fix this error? i tried uninstalling and that didn't help.
View 2 Replies
View Related
Oct 28, 2010
My friend was working on a text doc on openOffice and when suddenly his lappy went to hibernation mode. and he had to manually shutdown his lappy. The file his was working with is now blank. the file its self indicates that it is 0 kb.
View 3 Replies
View Related
Jun 26, 2011
I am trying to design a graphic in gimp2.6 image editor and I can't find a way to insert an existing jpeg file into gimp,
View 2 Replies
View Related
Oct 30, 2010
How can I write to a file multiple times using fwrite without affecting the previous writes?The method shown below accepts a file name, buffer and offset. The method opens the file in reading/writing mode and writes the content of the buffer at offset.
View 1 Replies
View Related
Nov 5, 2010
I'm using ubuntu 8.10 which is already installed. Recently I have downloaded ISO file of ubuntu 10.04. Is there any way to install that ISO file i've downloaded without writing the ISO file in a CD?
View 4 Replies
View Related
Mar 23, 2010
I had a drive that kept kernel panic'ing so my data center recommended using the spare hard drive to reinstall OS on, and import the data from the old drive. (they checked the hardware, it wasn't the hardware) The new install is done, and I need to mount the old drive and get backups off it since my data center does not provide management whatsoever.
It's the same OS on both (Cent OS 5.4 32-bit) I'm an advanced user on windows, but linux gets me. I can ssh in, do basic stuff like setup IP ranges and restart services. I normally navigate the box through SFTP so I have a gui. WHM shows me my drives as such
Found Disk: hda
Found Disk: sdb
so I'm assuming SDB is my old drive and the drive I need to access. I attempted to follow instructions on
cyberciti.biz/faq/freebsd-adding-second-hard-disk-howto/
but I'm assuming FreeBSD would work differently and I wasn't totally sure what the labels of the file systems should be.
View 1 Replies
View Related
Nov 9, 2010
I have a text file that needs to be updated to be used by some fortran code later. it looks like that:
1,1 !Ms for y-stations, Ns for x-stations
0,0,0, !xsta, ysta, zsta
I need to replace the "0,0,0" with new values for xsta,ysta and zsta;
View 4 Replies
View Related
Jul 21, 2010
I'm trying to install radare and under the binary section for fedora it has a .spec file. It this a sort of script for the rpm command? I found a lot of info on how to make spec files but nothing on what they are or how to use them. So I have a radare.spec file, how can I use it to install the program?
View 1 Replies
View Related
Apr 17, 2011
I build simple spec file and build rpmI transfer the new rpm to other Linux machine in order to install the new rpmaccording to the spec file the new rpm -> test.sh-6.2-2.i386.rpm should create the /tmp/MY_RPM_TESTS directory , but this rpm not create the MY_RPM_TESTS and sub directoriesplease advice why , what I need to fix in the spec file? RPM installation:
[root@linux1 rpm -Uvh /root/rpmbuild/RPMS/i386/test.sh-6.2-2.i386.rpm
Preparing... ########################################### [100%]
This is preinstall script
[code]....
View 1 Replies
View Related
Jul 28, 2010
I've installed pbnj 2.0 with the command "sudo apt-get install pbnj" on ubuntu 10.04 I can successfully scan hosts with the command scanpbnj
[Code]...
View 1 Replies
View Related