Software :: Rpmbuild: Check File Exist Before Installing Package?

Nov 17, 2010

I'm building a RPM package. In my SPEC file, in the "%pre" and "%post" sections, I need to be sure that Postgresql-server is started.I tried to add a "PreReq: /var/run/postmaster*" but the * is not interpreted ! (filename changes, depending on the linux distribution)Is this way test that this file exist (or test if the result of "pidof -s/usr/bin/postmaster" is empty, for example

View 2 Replies


ADVERTISEMENT

Software :: Mockbuild Does Not Exist - Installing Rpm Package

Apr 28, 2010

I am following this instructions:

Code:

[URL]

I have downloaded the following kernel:

kernel-2.6.18-164.15.1.el5.src.rpm

I have done the following steps:

As root, install the packages rpm-build, redhat-rpm-config and unifdef:

Code:

[root@host]# yum install rpm-build redhat-rpm-config unifdef

As an ordinary user, not root, create a directory tree based on ~/rpmbuild:

Code:

[user@host]$ cd
[user@host]$ mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
[user@host]$ echo '%_topdir %(echo $HOME)/rpmbuild' > .rpmmacros

However, when I try and install the rpm package:

Code:

[user@host]$ rpm -ivh kernel-2.6.18-164.15.1.el5.src.rpm | 2>&1 | grep -v mockb

I get the following error:

Code:

warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root

View 1 Replies View Related

General :: Run Command Through Ssh But Also Run A If Check In Bash To See Ifa File Exist?

Aug 1, 2011

So I want to run command through ssh but also run a if check in bash to see ifa file exist. I know that to run ssh commands you do ssh user@server YOURCOMMANDbut if i need to run an if statements, how would this work??

View 4 Replies View Related

Ubuntu Multimedia :: Installing Java 3D - Package Javax.vecmath Does Not Exist

Jan 9, 2011

I'm trying to play around with java 3d, but having troubles to get some example to run.

NetBeans don't likes the line "import javax.vecmath.*;", it tells me that "package javax.vecmath does not exist",...

Code:

etc/environment holds following:

Code:

View 1 Replies View Related

Software :: Rpmbuild A Spec File When A BuildRequires Is Not Installed

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

Programming :: Check If Any Directories Exist, Except A Certain One?

Aug 5, 2010

I need to find if, in a folder any directories exist, except a certain one named "mes croquis".What I am trying to say, is that the re already is a directory named "my croquis", which I have to ignore. IF any other directory appears, I have to archive them.I got everything so far, except the starting condition.In other terms , I am lookign for something like this:

IF anyDir EXIST AND name != "mes croquis"
do something
else

[code]....

View 2 Replies View Related

Ubuntu :: Check If Files Exist In Directory?

Jun 30, 2011

how to check two arguments whether it is a file and the other is a directory, check if files exist in directory and copy it if it is a newer version. Seriously i need idea to do tis, jst some simple sample wil do

View 3 Replies View Related

General :: Check If Directory DOES NOT Exist In BASH?

May 10, 2010

i tried to create a if else statements or either an else statement I get a message saying that the directory exists (mkdir: cannot create directory `./MAY2010': File exists I am running this in a crontab file and I dont want any output telling me that the directory exists. I just want to check if the directory doesnt exist, create one else do nothing (not even a message telling me that the directory exists).

[Code]....

View 8 Replies View Related

Programming :: Check If A Part Of String Exist

Sep 27, 2010

I have a macro which I use with ROOT. In this macro I want to check if a part of string exist so I can ignore it inside a loop. So, inside a loop I want to have something like:

Code:
if (string == "pre_ti_data_bdt*" || string == "pre_ti_data_nn*")
continue;

but of course I cannot use * in this piece of code! How to do this trick in C++?

View 5 Replies View Related

Red Hat :: Kickstart Install: "This Package Does Not Exist" After Setting Up The Package

May 24, 2011

I'm updating a working kickstart configuration.Got a good iso from it the last time used.I simply want to add 2 rpms to the installation. So I added the rpms (libganglia & libconfuse) into the ../Server directory. I added those two names to the %packages section in the .cfg file. And I added those two names into two new appropriate lines in the ../Server/repodata/comps.xml file.

I ran "createrepo -g repodata/comps.xml ." from the ../Server (rpms) directory. I then ran my "mkisofs" without issue, and used the resulting .iso. The message I get during installation is "You have specified the package 'libganglia' should be installed. This package does not exist. Would you like to continue or abort your installation?". I've tried several variations of the createrepo command.

View 3 Replies View Related

Ubuntu :: Installing Adobe Flash Plugin - RPM Package File

Aug 17, 2010

I am a 'newbie' to ubuntu (with 45+ years as a 'computer nerd'). I am trying to follow the instructions for installing the Flash plug-in so I can view some of the action on webpages. I get on terminal and the prompt is mike@mike-laptop. The instructions say to key in "# rpm -Uvh <rpm_package_file>". I have tried as many variations of this command as I can think of with no response. I am assuming that my interpretation of <rpm_package_file> is incorrect.

View 2 Replies View Related

CentOS 5 :: Yum-priorities Package For 5.4 Does Not Exist

Oct 22, 2009

yum-priorities package for 5.3 is listed here:

[URL]

but for 5.4 it does not exist:

[URL]

Is this intended?

View 2 Replies View Related

Fedora Installation :: Can't Find UNO / In What Package Does It Exist?

Oct 13, 2009

Code...

In what package does uno exist?

View 2 Replies View Related

Ubuntu Multimedia :: Lost All Sound - Package Audio Does Not Exist

Dec 3, 2010

I was trying to get help with video tearing but now I've lost all sound. This happened after using these two commands:

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
sudo dpkg-reconfigure -phigh xserver-xorg

I tried this:

ubuntu-bug audio
and got:
package audio does not exist
and:
ubuntu-bug -p alsa-base
and got:

Warning: The options -p/-P are deprecated, do not use them. See /usr/bin/ubuntu-bug

View 2 Replies View Related

Ubuntu :: Apt-get Upgrade System Or Install A New Package In Synaptic Or Terminal - Status Don't Exist?

Aug 11, 2011

when I try to apt-get upgrade system or install a new package in synaptic or terminal, I see this:

Code:
dpkg: ../../../lib/dpkg/dump.c:250: w_status: Assertion `pigp->trigpend_head' failed.
E: Sub-process /usr/bin/dpkg exited unexpectedly
So, before I have a problem - Synaptic opened, told that /var/lib/dpkg/status don't exist, in the web I read that sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/

View 4 Replies View Related

Fedora :: Installing Gcc - 'cstdio.h' Not Exist

May 1, 2011

I was trying to install gcc, and it sorta worked, but not really.. Im a student, and we were using an ada server that had 'gcc' already installed, so that we could cd to a directory and then 'gcc -o NAME FILEPATH' I tried to recreate this set up on my machine with Fedora 11... on my mac it is installed automatically and can be accessed from the terminal. How do I do it in Fedora? I downloaded 'gcc-4.6.0', I ran 'configure' from the gcc directory and a lot of text scrolled by really fast.. but then afterwards it said something failed...

but its weird, cuz I can write a simple 'c' program and gcc it from the terminal and it compiles.. it just gives me warnings about everything.. saying that packages like 'cstdio.h' do no exist.. warnings tho, not errors.. and it still runs.

View 5 Replies View Related

Ubuntu :: Logon Script - Create A File (if It Doesn't Already Exist) And Checks The File For Some Info

May 24, 2010

I want to create a logon script (or somesuch) that creates a file (if it doesn't already exist) and checks the file for some info otherwise. If it finds a given trigger in that file, it logs into a local database and does some operations.

Now my problem isn't with creating that file or even getting it to function as a logon script -- it's with permissions. After the logon script creates the file, I want that user to have read access on it ONLY. Further, I don't want to give the user any kind of root access so that they could do the database operations in question or chown/chmod the file.

What's the best practice here? I'm noticing that whenever the script runs (in .bashrc right now) the script runs with the current user's permissions. Ideally, I'd like to make it so the login script can run at a higher level of permissions, (higher than the user has). Is this even possible? What's the best way to do this?

View 1 Replies View Related

Ubuntu Installation :: Installing Package Through Synaptic Package Manager?

Aug 3, 2011

I have a problem when installing this package through synaptic package manager. this is :

libpng12-dev
the error is:
W: Failed to fetch http://security.ubuntu.com/ubuntu/po...tu2.1_i386.deb
404 Not Found [IP: 91.189.92.167 80]
my distribution is ubuntu 10.4.

View 1 Replies View Related

OpenSUSE :: Error "failed To Install File" When Installing RPM Package

May 26, 2011

when I am trying to install a RPM package I get the following error: failed to install file: [PK_TMP_DIR|dir:///var/tmp/TmpDir.w29lVZ] Repository already exists It tried to install DBVisualizer and Adobe Reader 9 and get the same error. Just the directory is different. How do I solve this? I tried to delete the mentioned directories but I can't find them on the file system.

View 4 Replies View Related

General :: Given A File Path Search For File Exist?

Jan 27, 2011

I have file which consists of many files with their path,i need to check for the file exists in the given path,how to check?

View 12 Replies View Related

Ubuntu :: Way To Determine Which Libraries Package Needs Before Installing Package Itself?

Feb 24, 2010

Is there a way to determine which libraries a package needs before installing the package itself?

View 2 Replies View Related

Software :: Building A Package With Check Install?

Oct 7, 2010

I am trying to build something with checkinstall but it is throwing this error message -
Code:dpkg-deb: parse error, in file '/var/tmp/tmp.tZtdRb9biy/package/DEBIAN/control' near line 3 package 'eina': field name `System' must be followed by colon make install works fine, but I would like a .deb to be built.

View 2 Replies View Related

Software :: Example File Does Not Exist

Jan 5, 2010

I installed LyX to try it out and the built-in tutorial wants me to play around with the file "example_raw.lyx", but I can't find it anywhere!

View 7 Replies View Related

Ubuntu :: "Can't Load Image From File '/usr/share/firefox/icons/mozicon128.png': File Does Not Exist."

Apr 12, 2010

Tried running simdock from software center...uninstalled because I was getting this error after trying to run ap "Can't load image from file '/usr/share/firefox/icons/mozicon128.png': file does not exist."

View 3 Replies View Related

Ubuntu :: Check If A Package Is Installed Via Command Line?

Aug 20, 2010

After sifting through numerous apt-get apt-cache apt-file tutorials I still can't find a command to check if a package is installed via the terminal command/line.

I know there must be some way to do it.

Say I want to check if any package from the libavcodec*.deb family is installed how could I do this without a gui eg synaptic?

View 5 Replies View Related

Ubuntu Installation :: Check The Configuration Of A Self-installed Package?

Jan 22, 2011

I'd love to know how to check the original configuration of a self-installed package? For example, I would like to install the package XXXXX. I did:

./configure
make
make install

After the installation, I would like to know what the configuration I used for XXXXX's installation. Maybe some dependencies (for example, A,B,C...) were not found so that XXXXX was installed without depending on A,B,C.... However, now, I would like XXXXX depend on A,B,C... How to check whether the current installed XXXXX's original configuration?

View 1 Replies View Related

Debian :: Use Aptitude To Check For An Installed Provided Package?

Jan 15, 2011

I regularly compile something from a source repository that has a certain set of dependencies. Some of these dependencies are dev libraries that are provided via other libraries but are not considered installed packages in themselves, so I cannot test for some dependencies directly.

I am currently parsing an "apt-cache showpkg" output to check for some of these provided dependencies. This is somewhat kludge-y and messy, and I was looking for a more elegant solution.

Is there an APTITUDE option that will directly test for the presence of a library that is part of some other package without having to know the name of the package that the library is part of?

View 2 Replies View Related

Software :: Flag For The Cvs Command To Check The Latest Tag Of A Certain Package?

Nov 4, 2010

Is there a flag for the cvs command to check the latest tag of a certain package

View 1 Replies View Related

Fedora :: Permanently Remove Package From Update Check List?

Sep 13, 2009

I m using pidgin2.5.5-1 that is old version of pidgin because of some proxy issue, I dont want to update it anymore but it keeps on showing its update in package updater its very annoying...How could i get rid of it ?I want package updater show all updates except this...that is permanently remove it from update check list.

View 2 Replies View Related

OpenSUSE Install :: System Check Doesn't Fix Package Database?

May 28, 2010

Because I was getting some package errors, I ran the Repair Installed System option that shows up after boot. During System Check when earching for package databases,YaST2 is not able to find /var/lib/rpm/Filemd5s. After a while, a YaST2 box pops up and says that it Successfully rebuilt the package databaseïbut I get the same error when I run System Check again. I've chosen both Rebuild Package Database as well as Revert to Original Package Database (saved by YaST)In both cases, it saysat it was successful, but the same error occurs the next time I run System Check

View 7 Replies View Related







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