Uploading pkg and appears as pkg.zip

sinergi
New Contributor III

Hi,

Is there any relevance when you transfer a .pkg to Casper Admin and it appears as .pkg.zip?

1 ACCEPTED SOLUTION

were_wulff
Valued Contributor II

Hey all,

This is normal, expected behavior if you've migrated your packages and scripts.

https://jamfnation.jamfsoftware.com/article.html?id=327 has a bit more detail on it, but the relevant part:

After the migration, newly added scripts are stored in the jamfsoftware database, and any newly added non-flat PKGs are compressed.

^ That's where the .pkg.zip comes from. It's compressed automatically by Admin when you upload a .pkg. If you watch very, very closely (or have an exceptionally large pkg) you can catch the part during the upload in which the status tells you it's compressing the package.

I should add that, on my JSSes that have had the Migrate button hit, it will compress flat and non-flat PKG files to .pkg.zip (or, at least, non-flat PKG files created in Composer) as well.
No worries though, the software knows how to handle them and they should install just fine.

As @daz_dar mentioned, it's to help the JDS (WebDAV) and HTTP/HTTPS distribution points better deal with .pkg files as they tend to want to view them as directories instead of packages, which can cause installation failures.

Thanks!

Amanda Wulff
JAMF Software Support

View solution in original post

10 REPLIES 10

daz_wallace
Contributor III

Hi Sinergi,

Others can likely confirm, but I believe that if the uploaded package file isn't a flat package then Casper Admin will zip it as it adds it to the Distribution Point. I image this is to help with HTTP/HTTPS downloads as Munki does the same thing.

At the end of the day, as long as your package still works then its all good!

Hope that helps

Darren

donmontalvo
Esteemed Contributor II

Wow, we're preparing to move to 9.3, if this is a feature it's a most welcome one.

@stevewood Just pinged me to say v9 brought that feature...can't wait for CMA/CCA in May. :)

Don

--
https://donmontalvo.com

sinergi
New Contributor III

Thanks daz_dar, I can confirm that the package does in fact work as .pkg.zip. However, after renaming the package within Casper Admin to .pkg did not work.

were_wulff
Valued Contributor II

Hey all,

This is normal, expected behavior if you've migrated your packages and scripts.

https://jamfnation.jamfsoftware.com/article.html?id=327 has a bit more detail on it, but the relevant part:

After the migration, newly added scripts are stored in the jamfsoftware database, and any newly added non-flat PKGs are compressed.

^ That's where the .pkg.zip comes from. It's compressed automatically by Admin when you upload a .pkg. If you watch very, very closely (or have an exceptionally large pkg) you can catch the part during the upload in which the status tells you it's compressing the package.

I should add that, on my JSSes that have had the Migrate button hit, it will compress flat and non-flat PKG files to .pkg.zip (or, at least, non-flat PKG files created in Composer) as well.
No worries though, the software knows how to handle them and they should install just fine.

As @daz_dar mentioned, it's to help the JDS (WebDAV) and HTTP/HTTPS distribution points better deal with .pkg files as they tend to want to view them as directories instead of packages, which can cause installation failures.

Thanks!

Amanda Wulff
JAMF Software Support

krispayne
Contributor

What if when you upload a pkg, that's say 5GB, to admin and it's IMMEDIATELY available. Our network isn't that strong, so I'm wondering if there's a problem somewhere

dstranathan
Valued Contributor II

Never managed Adobe CC in Jamf until recently. Saw the on-the-fly compression behavior today. Thought I'd post a screenie...

5d5637f6dc16421998dcf623cf7422a8

awjohnso
New Contributor

We are in the midst of transitioning to a Jamf Cloud instance from Munki/AirWatch. So far the process has been going okay. Yesterday afternoon while trying to upload the Adobe CC 2020 full pkg (18gigs+) I have been meet with failure with Jamf Admin and the Web interface. The pkg gets zipped up, and most of the upload happens, and just before it ends I get an error. We only have a cloud instance with no local repositories and I don't have the time now to create one.

Any suggestions? I figured I'd post here before reaching out to support to see if there is a solution floating around. Worst case scenario I can package each Adobe CC application in it's own package, but I am trying to avoid that if I can.

Thanks.
f6f3399e54664df1a0277b7f3a739cb2

mkessel
New Contributor

@awjohnso I have nothing helpful to add unfortunately other than that I had exactly the same issue as you with the same setup. I ran out of time in the end and just had to package each app individually.

sdagley
Esteemed Contributor II

@mkessel @awjohnso You should take a look at pkgChunker. From the description:

pkgChunker was developed to address an limitation of the Jamf Cloud Distribution Service (JCDS) where packages larger than 20GB are not able to be distributed to clients. However with this utility, you can easily chunk the parent package into smaller child flat packages that can be uploaded directly into Jamf Pro and distributed via a single policy. All the logic is included in the child packages to reassemble once all pieces are present and complete the install of the parent package.

awjohnso
New Contributor

Interesting regarding the pkgChunker. My issues ended up being the Cloud storage was broken, which lasted almost 2 plus weeks. After they got it fixed, we discovered other limitations, as in when we re-installed and moved 65 computes over to JAMF and they all pulled down packages etc around the same time, we killed our border, and subnet firewalls... So we are now architecting local distribution points around our campus...