Sponsored Content
Operating Systems Solaris Solaris10 Package Creation with variable Post 302575048 by jlliagre on Sunday 20th of November 2011 04:11:28 AM
Old 11-20-2011
As the error message states, variables need to be defined. Use something like:
Code:
pkgmk -o -r ./tree -d /var/spool/pkg/ -f prototype dan=myuser egroup=mygroup

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

creation variable

I want to define a variable like this. Can i declare such type? I have already define this, but error is displaying sysntax error. So tell me what will be the write. int create_mailfile(int,char*,char*,char*,char*,char*,char*); (1 Reply)
Discussion started by: debasis.mishra
1 Replies

2. Linux

how to restore original package after uninstalling the upgraded package using rpm

have following package installed rpm -qa |grep ADMIN It will give the following package installed: ADMIN-4.0.0.1 Now I will upgrade the ADMIN package using the following command. rpm --upgrade ADMIN-4.1.0.1 It will upgrade the ADMIN packagge to ADMIN-4.1.0.1 Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies

3. AIX

mkinstallp package creation failing "no such file: ./usr/lpp/<package name>/inst_root"

Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root" I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies

4. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

5. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

6. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

7. Solaris

Package creation problems with Source files

Hi, I am creating "LSOF" solaris package from solaris "source" files. I have compiled the source file and with that i created prototype file also. Then using pkgmk command i can make the package . In the package i am having (pkginfo pkgmap reloc) two file and one directory respectively But... (3 Replies)
Discussion started by: Kathirvel G
3 Replies

8. Solaris

SysV package creation, how to predefine DESTDIR

Hi Solaris experts How to predefine the DESTDIR in a Solaris package? Thanks (1 Reply)
Discussion started by: ./hari.sh
1 Replies

9. UNIX for Dummies Questions & Answers

Dynamic Variable creation

I am trying to create some variables based on the input by the user, say if user entered 3 then 3 variables and if 5 then 5 variables. I am using a for loop for (( i=1; i <= $num; i++ )) do x="num" x+=$i done When i am using echo $x it will show num1 but now how to create variables... (3 Replies)
Discussion started by: Raj999
3 Replies
pkgmk(1)							   User Commands							  pkgmk(1)

NAME
pkgmk - produce an installable package SYNOPSIS
pkgmk [-o] [-a arch] [-b base_src_dir] [-d device] [-f prototype] [-l limit] [-p pstamp] [-r root_path] [-v version] [variable=value...] [pkginst] DESCRIPTION
The pkgmk utility produces an installable package to be used as input to the pkgadd(1M) command. The package contents will be in directory structure format. The command uses the package prototype(4) file as input and creates a pkgmap(4) file. The contents for each entry in the prototype file is copied to the appropriate output location. Information concerning the contents (checksum, file size, modification date) is computed and stored in the pkgmap file, along with attribute information specified in the prototype file. pkgmk searches for the files listed in the prototype(4) file as described in the following conditions. Note: If a prototype file contains the explicit location of the file to include in the package, then the following search explanations do not apply. 1. If neither -b nor -r options are specified, the file name component of each file path listed in the prototype(4) file is expected to be found in the same directory as the prototype(4) file 2. If -b is specified as a relative path (without a leading "/"), then base_src_dir is prepended to the relative file paths from the pro- totype(4) file. The resulting path is searched for in the root_path directories. If a root_path is not specified, it defaults to "/". 3. If -b is specified as an absolute path (with a leading "/"), then base_src_dir is prepended to the relative paths from the prototype(4) file and the result is the location of the file. root_path is not searched. 4. If -r is specified, then full file paths are used from the prototype(4) file. Relative paths have base_src_dir prepended. If base_src_dir is not specified, it defaults to "". The resulting path is searched for in each directory of the root_path. If you created your prototype file using "pkgproto a/relative/path" or "pkgproto a/relative/path=install/path", then you should use the -r root_path option to specify the location of a/relative/path so that pkgmk can correctly locate your source files. OPTIONS
The following options are supported: -a arch Overrides the architecture information provided in the pkginfo(4) file with arch. -b base_src_dir Prepends the indicated base_src_dir to locate relocatable objects on the source machine. Use this option to search for all objects in the prototype file. pkgmk expects to find the objects in /base_src_dir or to locate the objects by use of the -b and -r options, respectively. -d device Creates the package on device. device can be an absolute directory pathname or the identifiers for a floppy disk or remov- able disk (for example, /dev/diskette). The default device is the installation spool directory (/var/spool/pkg). -f prototype Uses the file prototype as input to the command. The default prototype filename is [Pp]rototype. -l limit Specifies the maximum size in 512 byte blocks of the output device as limit. By default, if the output file is a directory or a mountable device, pkgmk will employ the df(1M) command to dynamically calculate the amount of available space on the output device. This option is useful in conjunction with pkgtrans(1) to create a package with a datastream format. -o Overwrites the same instance; package instance will be overwritten if it already exists. -p pstamp Overrides the production stamp definition in the pkginfo(4) file with pstamp. -r root_path Uses the indicated root_path with the source pathname appended to locate objects on the source machine, using a comma (,) as the separator for the path elements. If this option is specified, look for the full destination path in each of the directories specified. If neither -b nor -r is specified, look for the leaf filename in the current directory. -v version Overrides the version information provided in the pkginfo(4) file with version. variable=value Places the indicated variable in the packaging environment. (See prototype(4) for definitions of variable specifications.) OPERANDS
The following operand is supported: pkginst A package designation by its instance. An instance can be the package abbreviation or a specific instance (for example, inst.1 or inst.2). All instances of a package can be requested by inst.*. The asterisk character (*) is a special character to some shells and may need to be escaped. In the C-Shell, "*" must be surrounded by single quotes (') or preceded by a backslash (). EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
pkgparam(1), pkgproto(1), pkgtrans(1), uname(1), df(1M), pkgadd(1M), pkginfo(4), pkgmap(4), prototype(4), attributes(5) Application Packaging Developer's Guide NOTES
Architecture information is provided on the command line with the -a option or in the prototype(4) file. If no architecture information is supplied, pkgmk uses the output of uname -m (see uname(1)). Version information is provided on the command line with the -v option or in the pkginfo(4) file. If no version information is supplied, a default based on the current date will be provided. Command line definitions for both architecture and version override the prototype(4) definitions. SunOS 5.10 10 Jan 2001 pkgmk(1)
All times are GMT -4. The time now is 02:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy