Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Installing single non-free packages
Installing single non-free packages
Hi,
I would like to use Debian without non-free. My Lenovo T550 has an intel WiFi card which requires non-free and I think I am correct to say that there isn't a suitable Atheros chip card to replace it.
I know how to edit sources.list to add non-free. I have also learnt about adding packages from backports.
I would like to know if it is possible to install select, single packages (such as the intel wifi one) without having to enable non-free repositories for everything.
I have searched the internet for solutions but everything I find goes straight to the option of adding contrib and non-free to sources.list. Ideally I would like to keep my computer as free as possible. I have tried Trisquel and Libreboot but feel a free Debian setup with as minimal non-free as possible is a good compromise for me.
Thank you for any help
I would like to use Debian without non-free. My Lenovo T550 has an intel WiFi card which requires non-free and I think I am correct to say that there isn't a suitable Atheros chip card to replace it.
I know how to edit sources.list to add non-free. I have also learnt about adding packages from backports.
I would like to know if it is possible to install select, single packages (such as the intel wifi one) without having to enable non-free repositories for everything.
I have searched the internet for solutions but everything I find goes straight to the option of adding contrib and non-free to sources.list. Ideally I would like to keep my computer as free as possible. I have tried Trisquel and Libreboot but feel a free Debian setup with as minimal non-free as possible is a good compromise for me.
Thank you for any help
Re: Installing single non-free packages
Why not just enable the non-free repo, download the software, then disable it?
I have done the same with Opera browser. Only because the consistent updates annoyed me, however.
I have done the same with Opera browser. Only because the consistent updates annoyed me, however.
Re: Installing single non-free packages
Does adding non-free to sources.list and update&&upgrade not apply a global change? I.e., it'll upgrade lots of packages to non-free versions? Sorry, I'm a bit confused.
Also, If I install a non-free package, then remove non-free from sources, how does that package still get updated?
Also, If I install a non-free package, then remove non-free from sources, how does that package still get updated?
-
- Posts: 182
- Joined: 2016-07-13 08:40
Re: Installing single non-free packages
If you have no other non-free packages, why would it upgrade lots of packages? If I understood correctly, you'll only install 1 package.RichardEU wrote:Does adding non-free to sources.list and update&&upgrade not apply a global change? I.e., it'll upgrade lots of packages to non-free versions? Sorry, I'm a bit confused.
Also, If I install a non-free package, then remove non-free from sources, how does that package still get updated?
Debian GNU/Linux 9 Stretch w/Openbox
Acer Aspire E5-521G
AMD A8-6410 APU
4 GB RAM
integrated AMD Mullins
dedicated AMD Hainan Radeon R5 M240 2 GB
240 GB Toshiba Q300 SSD
Realtek RTL8111/8168/8411 ethernet
Qualcomm Atheros QCA9565 wireless
Acer Aspire E5-521G
AMD A8-6410 APU
4 GB RAM
integrated AMD Mullins
dedicated AMD Hainan Radeon R5 M240 2 GB
240 GB Toshiba Q300 SSD
Realtek RTL8111/8168/8411 ethernet
Qualcomm Atheros QCA9565 wireless
Re: Installing single non-free packages
Exactly.deborah-and-ian wrote: If you have no other non-free packages, why would it upgrade lots of packages? If I understood correctly, you'll only install 1 package.
Re: Installing single non-free packages
You're mixing up how main and non-free work. They are separate packages and non-free are opt-in.RichardEU wrote:Does adding non-free to sources.list and update&&upgrade not apply a global change? I.e., it'll upgrade lots of packages to non-free versions? Sorry, I'm a bit confused.
It wouldn't. If you want to keep your sources.list 'clean' and have control of your updates, you could remove it. It depends what's important to the user. As I said earlier, as an example, I have commented out my Opera repo. I won't get any more Opera updates, but that's my choice - in fact it's the exact reason why I commented it out.RichardEU wrote:Also, If I install a non-free package, then remove non-free from sources, how does that package still get updated?
Last edited by Lysander on 2017-08-31 13:14, edited 1 time in total.
Re: Installing single non-free packages
So if I intall Debian, then add 'contrib non-free' to sources.list, apt update && upgrade, then it will literally only install that one wifi package? It wont installing any other package?
Or should I add contrib non-free and then simply apt-get install firmware-iwlwifi and then remove contrib non-free from sources.list?
If it's the latter what practical difference is there between doing the above or doing ghe method wizard1000 mentioned? In both cases there will be no updates if I understand correctly. If so, surely it's quicker to do what wizard1000 said than to edit sources.list.
Or should I add contrib non-free and then simply apt-get install firmware-iwlwifi and then remove contrib non-free from sources.list?
If it's the latter what practical difference is there between doing the above or doing ghe method wizard1000 mentioned? In both cases there will be no updates if I understand correctly. If so, surely it's quicker to do what wizard1000 said than to edit sources.list.
Re: Installing single non-free packages
It won't install anything if you don't tell it what to install.RichardEU wrote:So if I intall Debian, then add 'contrib non-free' to sources.list, apt update && upgrade, then it will literally only install that one wifi package? It wont installing any other package?
Only if you don't want updates. If you do, leave it.RichardEU wrote:Or should I add contrib non-free and then simply apt-get install firmware-iwlwifi and then remove contrib non-free from sources.list?
I would suggest editing sources.list. You can then choose to disable the repo if you don't want updates and keep it enabled if you do.RichardEU wrote:If it's the latter what practical difference is there between doing the above or doing ghe method wizard1000 mentioned? In both cases there will be no updates if I understand correctly. If so, surely it's quicker to do what wizard1000 said than to edit sources.list.
Sources.list is a vital file to get to grips with if you want to control how Debian handles updates. Read this because it's pertinent to learn the basics of the OS you're using.
Re: Installing single non-free packages
Thank you for taking the time to answer my questions. I will defintiely have a read of the link you provided.
So, just to check I have it right, I could theoretically add 'contrib non-free' to sources.list and maintain a fully free OS by only selecting free packages from synaptic for example. I am simply expanding the pool of potential packages I could install?
I think I am getting confused by assuming that enablng non-free repos will automatically alter the installation - eg switch free drivers to non-free ones and so forth.
So, just to check I have it right, I could theoretically add 'contrib non-free' to sources.list and maintain a fully free OS by only selecting free packages from synaptic for example. I am simply expanding the pool of potential packages I could install?
I think I am getting confused by assuming that enablng non-free repos will automatically alter the installation - eg switch free drivers to non-free ones and so forth.
Re: Installing single non-free packages
In basic terms, apt-get will only install packages that you direct it to with apt-get install, and will only upgrade files that are installed with apt-get update and apt-get upgrade, regardless the repos that are enabled.RichardEU wrote: I think I am getting confused by assuming that enablng non-free repos will automatically alter the installation - eg switch free drivers to non-free ones and so forth.
Re: Installing single non-free packages
Definitely. Thanks for the help.wizard10000 wrote:Hope this helps -