SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
{install,upgrade,remove}pkg all work fine with wildcards (unless with that wildcard expansion you manage to surpass the limits of the shell, which on a 14.2 64bit install is over 2 million characters).
I've run commands such as upgradepkg --reinstall --install-new */*/*.t?z without any issues. The question mark in the extension allows for both .tgz and .txz packages.
I don't see any immediate reason to use a for loop unless you're looking at limiting what you're trying to install.
{install,upgrade,remove}pkg all work fine with wildcards (unless with that wildcard expansion you manage to surpass the limits of the shell, which on a 14.2 64bit install is over 2 million characters).
I've run commands such as upgradepkg --reinstall --install-new */*/*.t?z without any issues. The question mark in the extension allows for both .tgz and .txz packages.
I don't see any immediate reason to use a for loop unless you're looking at limiting what you're trying to install.
no not really tying to limit it at all. file manager states 40 files. so that is like way within 2 million character limits.
so what I wrote too would work? I am making my USB Stick right now. as soon as that is done I will be installing slack.
Yes, you can either cd into the directory and just type installpkg * or you can run it from wherever you're at and provide the full path installpkg /run/media/userx/WD3TB/Slackware-tgz-files/* like in your first example.
However, personally, I would always use a *.tgz, *.txz, or *.t?z just as a general guideline whenever I'm working with a specific type of files. I'm pretty sure pkgtools will ignore non-package files, but it's still a good practice to get into (especially with deleting things).
Yes, you can either cd into the directory and just type installpkg * or you can run it from wherever you're at and provide the full path installpkg /run/media/userx/WD3TB/Slackware-tgz-files/* like in your first example.
However, personally, I would always use a *.tgz, *.txz, or *.t?z just as a general guideline whenever I'm working with a specific type of files. I'm pretty sure pkgtools will ignore non-package files, but it's still a good practice to get into (especially with deleting things).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.