Dec 10, 2018 Using apt-get commands. Let’s first start with apt-get commands. You just cannot escape this command. It’s better to have an understanding of these commands so that you can handle your Linux system in a slightly better way. Update package database with apt-get. Apt-get basically works on a database of available packages.
's.No support requests - This is not a support forum! Head to or for support or help. Looking for a distro? Try.No spamblog submissions - Posts that are identified as either blog-spam, a link aggregator, or an otherwise low-effort website are to be removed.No memes, image macros or rage comics - Meme posts are not allowed in.
Feel free to post over at instead.Reddiquette, trolling, or poor discussion - asks all users follow Top violations of this rule are trolling, starting a flamewar, or not 'remembering the human' aka being hostile or incredibly impolite.Relevance to community - Posts should follow what the community likes: GNU/Linux, Linux kernel itself, the developers of the kernel or open source applications, any application on Linux, and more. Take some time to get the feel of the subreddit if you're not sure!.Spamming self-promotion and surveys - Submitting your own original content is welcome on, but we do ask that you contribute more than just your own content to the subreddit as well as require you to interact with the comments of your submission. Additionally, surveys are not allowed.No misdirecting links, sites that require a login, or URL shorteners - In short: if your link doesn't go right to the content it will be removed.No NSFWGNU/Linux is a free and open source software operating system for computers.
The operating system is a collection of the basic instructions that tell the electronic parts of the computer what to do and how to work. Free, Libre and open source software (FLOSS) means that everyone has the freedom to use it, see how it works, and change it.GNU/Linux is a collaborative effort between the GNU project, formed in 1983 to develop the GNU operating system and the development team of Linux, a kernel.
In 2013 I asked the questions ' As with nearly all my blog posts, the comments are better than the post itself.;)Now it's 2015 and many of us are. One of the little gems in Windows 10 that no one is talking about (yet) is. You can read.It's easy (and wrong) to just say that One-Get is Apt-Get for Windows. It's more clever and cooler than that. It's a package manager manager. OneGet is a Manager of Package ManagersGo out to you Windows 10 PowerShell prompt now and type 'Get-PackageProvider' and you'll see the package managers you have registered with OneGet today.
C: Get-PackageProviderName Version- -Programs 10.0.4msu 10.0.4msi 10.0.4PSModule 1.0.0.0Usually programs are installed with things like MSIs, for example, so there's a provider for that. You can type 'Get-Package' and see the programs AND packages on your machine: C: Get-PackageName Version- -123D Design R1.6 1.6.41Windows Driver Package - Ge.
8.Windows Driver Package - Ge. 8.Windows Driver Package - FT. 2.JRuby 1.7.19 1.7.19Windows Driver Package - ST. 3.EPSON NX410 Series Printer.Intel Edison Device USB driver 1.2.1Since it's PowerShell, you can sort and filter and what-not to your heart's delight.
OneGet isn't Microsoft's Chocolatelyis an open source apt-get-like machine-wide package manager that you can use today, even if you don't have Windows 10.OneGet isn't Microsoft's version of Chocolately. But there is a beta/preview Chocolatey provider that plugs into OneGet so you can use OneGet to get Chocolatey packages and install them.Other things worth noting, even though OneGet is in the box for Windows 10, you can still run it on Windows 7 and Windows 2008 R2. Plus, isn't done and it's open source so there's lots of cool possibilities.Oh, and an important naming point. Just like 'Chromium' is the open source browser and 'Chrome' is the Google packaged instance of that project, 'OneGet' is the open source project and what ships with Windows 10 is just generically 'PackageManagement.'
Just a good reminder of the relationship between open source projects and their shipping counterparts. Installing VLC using OneGet and Chocolatey on Windows 10Example time. You've got a new Windows 10 machine and you want to get VLC. You can (and should) totally get it from the Windows Store, but let's get it using Package Management.Here I need to get the beta Chocotlatey provider first, and once, with 'get-packageprovider -name chocolatey.' Also, when I install a package for the first time it will prompt to download NuGet as well. I will answer Yes to both.NOTE: You can also install Chocolatey explicitly with 'install-package –provider bootstrap chocolatey'Now I can just 'install-package vlc' and it will get it from the Chocolatey repository. I would have preferred an actual, working package manger over a manager of package managers.
Chocolatey is ok, but really not very robust. MSI is a crux beyond belief. Why can't there be a simple, declarative way to install packages on windows?
With updates via internet etc.? For apps the Store now provides that, but for anything else there still isn't any acceptable solution. It is just bizarre that it is the year 2015, and if you want to write a setup with an auto update for a windows software, you have to code all of that yourself. @Brandon, there are several ways to do 'sudo'-like operation in a PowerShell to elevate permissions only for a specific process.
Here's one of the first that came up when I googled for it on the bing: 'C:Chocolatey' was the original Chocolatey install path, so it just seems that the oneget-chocolatey provider is currently a couple releases behind Chocolatey upstream. Hopefully the provider will be updated soon to use the latest and greatest Chocolatey. And now 2015, what's new? I'm very newbie-silly, I'm confused about all that. Not DEFINITIVE GUIDE about it, IMHO.NuGet, MyGet, Chocolatey, OneGet what?!
People ask questions and occasionally can’t see the forest for the trees. Here’s a quick recap:NuGet: a solution-level package management tool, used to manage software dependencies within the scope of a solution. It is accompanied by the NuGet Gallery, the home of many if not all.NET open source components.Chocolatey: a system-level package management tool, used to manage software installations on a Windows system. It (currently) leverages PowerShell and NuGet, supports the Web Platform Installer (WebPI), MSI, RubyGems and many more, and is accompanied by the Chocolatey Gallery where you can find many popular software packages. Rob describes Chocolatey as somewhat like “apt-get”, but with Windows in mind.MyGet: a hosted NuGet package server where you can create and secure your own feeds. In essence, MyGet is able to host vanilla NuGet feeds, as well as Chocolatey feeds.OneGet: a a unified interface to package management systems (see above)more, and more:PSGet and PSReadLine https://github.com/lzybkr/PSReadLine.
@davidacoder OneGet came out of the CoApp project, which was an attempt to do exactly that. It didn't work because they couldn't get enough people on board with one system with one set of design choices/tradeoffs, which also happened to require repackaging everything in the world.
So instead, we have a system that doesn't dictate how packages are discovered or installed, and can take advantage of existing packaging work.Hopefully, this system can still provide things like automatic updates.@David Sounds like a bug in the Chocolatey provider to me. OneGet does not assume you need to be an administrator to do anything (that would not be true of all packaging systems, for example if you install Python as a non-admin user, a Python provider would be able to install packages for it as that user), so it's up to individual providers to figure this out and elevate when necessary. I applaud the decision to provide the platform and abstractions to build an eco system but to bootstrap this I fail to see why Microsoft has not supported early implementations with funding, either through donations, developers like libgit2, or direct employment like with Glimpse.The dedication that patently goes into choco is inspiring. However it pains me to see package management for windows run on a part time, extreme hobbiest, donation basis.Am looking forward to Hashicorp and other players in this field getting involved too.I think I'd just like to see a real apt-get on windows, whether that means Microsoft writing their own implementation for one-get or them backing something else like choco.It's a long road but Windows is so far behind linux in some aspects - like apt-get - and as a Windows user I wish Microsoft would get there a bit quicker. 2016 (Windows Server) is too far away.Embryonic yes, but a good start none-the-less.
Fingers crossed this will iterate fast. @Kerry: Great call! Running that command made it install packages properly.So, next problem- uninstall-package doesn't work! It removes the package from the package-management directory, so powershell/oneget/whatever you call it thinks the package was removed, but I can still run it and was forced to use the graphical uninstaller.Another major missing feature with powershell windows package-management is that there's no 'upgrade' command.
In my ubuntu box, I simply run 'apt-get update' to refresh all the repositories followed by 'apt-get upgrade' to upgrade all my packages. As far as I can tell, there is no equivalent to either command in windows package-management- it works on individual packages only and does not maintain a local repository cache.So. It's pretty far from feature-parity with yum or apt, and it's not ready to actually be used, but it's encouraging.
The problem with Chocolately and by extension OneGet is that package verification is hard. Currently anyone can upload any package, even if they are not the author/owner. They are doing a review of all uploads but that's neither fool-proof nor scalable. They need a solution where either the vendors themselves are participating or all the packages can be verified/matched to the releases that are provided by the vendors on their own sites.It makes me nervous when I see that Firefox (for example) is uploaded/maintained by someone other than Mozilla.
OneGet and Chocolatey both have terrible documentation. It's all 5 month old blog posts leading to confusingly named websites and GitHub repositories, abandoned Twitter accounts, and the strangely non-commitant release notes of Chocolatey ('may break something in some cases, but it's better, we hope')This blog post is the clearest yet since the Windows 10 release, so Scott, if you know any of them, be sure to tell them when you meet them that Windows 10 has been released, and they need to get their act together.
Start blogging, update those websites, remove those beta/preview feeds, edit those GitHub wiki's and readmes, and start tweeting! Also, none of this actually works, as is clear from the comments here, so at best we are all talking about a proof of concept that shipped in Windows 10.I think it can be great for pro users and developers, but not with Chocolatey. As someone else said, Chocolatey is just wrapping.exe in.ps1, usually to add -silent switches. One should never just download and run installers, yet this is what Chocolatey will end up encouraging.The only way forward is installations that are purely based on declarative syntax, not executable code. The trusted installer will simply copy files, nothing more. And apps will remain sandboxed, not registry access, just file in their own install dir, in temp, and in their own dir in user data.
OK I had a lot of trouble getting these steps running on a clean Windows 10 installation, if anyone else is encountering the same issues, you might want to read on:1. First, run PowerShell as Administrator, otherwise nothing will work and it will silently fail (yes, it's annoying).2. Run Set-ExecutionPolicy RemoteSigned in the console.3. Run the commands in Scott's blog post to enable Chocolatey provider and install packages (such as vlc).4. Chocolatey, for now, does not add its bin directory to%PATH% environment variable, therefore command-line packages (those without an installer) might not work when you type their name.
Therefore add C:Chocolateybin (not sure about the exact path) to your PATH environment variable and relaunch your console. This is another fail by Microsoft making something that should be fairly simple way too complicated. Think about how many wrappers there are that can break between the code. There is the MSI which MS took out for a few years. Then introduced a buggy addon that has gotten bad feedback.
Then you wrap that MSI in Chocolatey then you use Oneget to manage the Chocolatey and other repos. Seriously guys?All this just to package code and install apps. I think you can do better so much better than this over there.