次の例では、元の pkg.summary の値が「IPS has lots of features」に変更されています。pkgrecv の --raw オプションを使用してパッケージがダウンロードされます。デフォルトでは、最新バージョンのパッケージのみがダウンロードされます。その後、パッケージが新しいリポジトリに再発行されます。
$ mkdir republish; cd republish $ pkgrecv -d . --raw -s http://pkg.oracle.com/solaris/release package/pkg $ cd package* # The package name contains a '/' and is url-encoded. $ cd * $ cat > fix-pkg # Change the value of pkg.summary <transform set name=pkg.summary -> edit value '.*' "IPS has lots of features"> # Delete any signature actions <transform signature -> drop> # Remove the time stamp from the fmri so that the new package gets a new time stamp <transform set name=pkg.fmri -> edit value ":20.+" ""> ^D $ pkgmogrify manifest fix-pkg > new-manifest $ pkgrepo create ./mypkg $ pkgsend -s ./mypkg publish -d . new-manifest