Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-27 Thread Jonathan Dowland
On Fri, Jun 24, 2022 at 07:02:35AM +, Andrew M.A. Cater wrote: Train your brain and your fingers to move the rf to the end of the command so that you _have_ to check what filename you are typing as you type it. I set a shell alias alias rm='echo use trash instead' This was enough to t

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-25 Thread Joel Roth
On Sat, Jun 25, 2022 at 09:45:58AM -0400, Greg Wooledge wrote: > On Fri, Jun 24, 2022 at 07:42:25PM -1000, Joel Roth wrote: > > I list the files first: > > > > ls some-pattern > > > > then add a pipe to rm: > > > > ls some-pattern | rm > > > > or > > > > ls some-pattern | rm -rf > > Those co

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-25 Thread Greg Wooledge
On Fri, Jun 24, 2022 at 07:42:25PM -1000, Joel Roth wrote: > I list the files first: > > ls some-pattern > > then add a pipe to rm: > > ls some-pattern | rm > > or > > ls some-pattern | rm -rf Those commands do not work. rm does not read a list of files from stdin. Even if you were to add

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-24 Thread Joel Roth
On Fri, Jun 24, 2022 at 07:02:35AM +, Andrew M.A. Cater wrote: > There are a couple of useful habits to get into when removing things: > > There's an > > rm -i > Use the pwd command to check where you are in the > filesystem. (It may be short for "print working > directory"). > If you

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani
On 6/24/2022 2:24 PM, David Wright wrote: This strikes me as a nightmare waiting to happen. There was probably a similar feeling when .deb and dpkg and apt rolled out. I think you made this up. I'm sure there were some people who were happy enough with Slackware when dpkg was evolving, but I ne

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread David Wright
On Wed 22 Jun 2022 at 18:21:10 (-0400), Bijan Soleymani wrote: > On 6/22/2022 5:22 PM, Charles Curley wrote: > > On Wed, 22 Jun 2022 16:25:02 -0400 Bijan Soleymani wrote: > > > > > Anyways it would be nice to do: > > > > > > apt install http://domain/filename.deb > > This strikes me as a nightma

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-24 Thread David Wright
On Fri 24 Jun 2022 at 08:48:05 (-0400), rhkra...@gmail.com wrote: > On Friday, June 24, 2022 03:02:35 AM Andrew M.A. Cater wrote: > > The last suggestion, and it's the simplest: > > > > rm [filename] -rf > > > > Train your brain and your fingers to move the rf to the end of the command > > so th

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani
On 6/24/2022 10:03 AM, Bijan Soleymani wrote: To me anytime you need to use su or sudo to do something, you should not think it is harmless, no matter how simple or easy. Although all that being said, I remember a long time ago getting into a situation with apt or dpkg (removing libc or ins

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani
Hi Didier, On 6/24/2022 4:36 AM, didier gaumet wrote: Le jeudi 23 juin 2022 à 16:27 -0400, Bijan Soleymani a écrit : rm wrongfile how do I undelete? better put deleted files in the "recycling box" and prompt users on every deletion by default rm -rf / oops! sigh... Bijan Hello, Please o

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Greg Wooledge
On Fri, Jun 24, 2022 at 09:17:40AM -0400, Bijan Soleymani wrote: > On 6/24/2022 4:48 AM, Jonathan Dowland wrote: > > On Wed, Jun 22, 2022 at 03:22:30PM -0600, Charles Curley wrote: > > > How do you handle dependencies where there is a version of the > > > dependency on the server, and another versi

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani
On 6/24/2022 4:01 AM, Darac Marjal wrote: On 22/06/2022 18:04, Person the human wrote: I just want to get everyone's opinion on this before I request it from the developers or possibly try to add it myself. Would it be nice if it was possible to pass a URL to 'apt install' so that a package

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Bijan Soleymani
On 6/24/2022 4:48 AM, Jonathan Dowland wrote: On Wed, Jun 22, 2022 at 03:22:30PM -0600, Charles Curley wrote: How do you handle dependencies where there is a version of the dependency on the server, and another version on a repo in the user's sources.list? Multiple nested dependencies? You don

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-24 Thread rhkramer
On Friday, June 24, 2022 03:02:35 AM Andrew M.A. Cater wrote: > The last suggestion, and it's the simplest: > > rm [filename] -rf > > Train your brain and your fingers to move the rf to the end of the command > so that you _have_ to check what filename you are typing as you type it. > > If you

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread didier gaumet
Le jeudi 23 juin 2022 à 16:27 -0400, Bijan Soleymani a écrit : > > rm wrongfile > > how do I undelete? > > better put deleted files in the "recycling box" and prompt users on > every deletion by default > > rm -rf / > > oops! > > sigh... > > Bijan Hello, Please open a new thread when y

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Jonathan Dowland
On Wed, Jun 22, 2022 at 03:22:30PM -0600, Charles Curley wrote: How do you handle dependencies where there is a version of the dependency on the server, and another version on a repo in the user's sources.list? Multiple nested dependencies? You don't: just like "apt install ./foo.deb", apt take

Re: Feature request: install package by passing URL to apt-get

2022-06-24 Thread Darac Marjal
On 22/06/2022 18:04, Person the human wrote: I just want to get everyone's opinion on this before I request it from the developers or possibly try to add it myself. Would it be nice if it was possible to pass a URL to 'apt install' so that a package could be installed without first downloadin

Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-24 Thread Andrew M.A. Cater
On Thu, Jun 23, 2022 at 04:27:28PM -0400, Bijan Soleymani wrote: > On 6/23/2022 12:03 PM, Person the human wrote: > > The easier something is to do, the more harmless people will think it > > is, so you're right. Thanks. > > rm wrongfile > > how do I undelete? > > better put deleted files in the

Re: Feature request: install package by passing URL to apt-get

2022-06-23 Thread Charles Curley
On Thu, 23 Jun 2022 16:27:28 -0400 Bijan Soleymani wrote: > better put deleted files in the "recycling box" and prompt users on > every deletion by default > > rm -rf / > > oops! Better yet, have proper backups. https://charlescurley.com/blog/posts/2019/Nov/02/backups-on-linux/ -- Does any

Re: Feature request: install package by passing URL to apt-get

2022-06-23 Thread Dan Ritter
Bijan Soleymani wrote: > On 6/23/2022 12:03 PM, Person the human wrote: > > The easier something is to do, the more harmless people will think it > > is, so you're right. Thanks. > > rm wrongfile > > how do I undelete? > > better put deleted files in the "recycling box" and prompt users on ever

Re: Feature request: install package by passing URL to apt-get

2022-06-23 Thread Charles Curley
On Wed, 22 Jun 2022 14:34:41 -0230 Person the human wrote: > Would it be nice if it was possible to pass a URL to 'apt install' so > that a package could be installed without first downloading its .deb > file? I think it's good because it can save time and prevent unneeded > damage to SSDs. Even

Re: Feature request: install package by passing URL to apt-get

2022-06-23 Thread Bijan Soleymani
On 6/23/2022 12:03 PM, Person the human wrote: The easier something is to do, the more harmless people will think it is, so you're right. Thanks. rm wrongfile how do I undelete? better put deleted files in the "recycling box" and prompt users on every deletion by default rm -rf / oops! s

Re: Feature request: install package by passing URL to apt-get

2022-06-23 Thread Person the human
The easier something is to do, the more harmless people will think it is, so you're right. Thanks. On Wed, Jun 22, 2022 at 5:56 PM Dan Ritter wrote: > Person the human wrote: > > Having this feature won't help me personally since I'm not using an SSD > and > > I don't download packages from the

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread tomas
On Wed, Jun 22, 2022 at 06:21:10PM -0400, Bijan Soleymani wrote: [...] > > This strikes me as a nightmare waiting to happen. > > There was probably a similar feeling when .deb and dpkg and apt rolled out. > Users are going to have dependency issues, etc. If libc breaks on upgrade > then everyth

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Bijan Soleymani
On 6/22/2022 5:22 PM, Charles Curley wrote: On Wed, 22 Jun 2022 16:25:02 -0400 Bijan Soleymani wrote: Anyways it would be nice to do: apt install http://domain/filename.deb too. Wonder if there's some optimal/convenient way to handle dependencies if they're on the same server too. How do yo

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Charles Curley
On Wed, 22 Jun 2022 16:25:02 -0400 Bijan Soleymani wrote: > Anyways it would be nice to do: > > apt install http://domain/filename.deb > > too. Wonder if there's some optimal/convenient way to handle > dependencies if they're on the same server too. How do you handle dependencies where there

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Dan Ritter
Person the human wrote: > Having this feature won't help me personally since I'm not using an SSD and > I don't download packages from the internet often. The reason I wanted this > to be built into apt is so that websites that would normally link to a file > and tell users to download it could in

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Greg Wooledge
On Wed, Jun 22, 2022 at 04:25:02PM -0400, Bijan Soleymani wrote: > I think you can now do: > > apt install filename.deb Close. It has to begin with / or ./ or ../ or else it won't be seen as a filename. apt install ./filename.deb

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Bijan Soleymani
On 6/22/2022 1:04 PM, Person the human wrote: I just want to get everyone's opinion on this before I request it from the developers or possibly try to add it myself. Would it be nice if it was possible to pass a URL to 'apt install' so that a package could be installed without first downloadin

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Person the human
Having this feature won't help me personally since I'm not using an SSD and I don't download packages from the internet often. The reason I wanted this to be built into apt is so that websites that would normally link to a file and tell users to download it could instead just give users a command t

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Charles Curley
On Wed, 22 Jun 2022 14:34:41 -0230 Person the human wrote: > Would it be nice if it was possible to pass a URL to 'apt install' so > that a package could be installed without first downloading its .deb > file? How do you install it without first pulling it in? > I think it's good because it can

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread Dan Ritter
Person the human wrote: > I just want to get everyone's opinion on this before I request it from the > developers or possibly try to add it myself. > > Would it be nice if it was possible to pass a URL to 'apt install' so that > a package could be installed without first downloading its .deb file

Re: Feature request: install package by passing URL to apt-get

2022-06-22 Thread David Wright
On Wed 22 Jun 2022 at 14:34:41 (-0230), Person the human wrote: > I just want to get everyone's opinion on this before I request it from the > developers or possibly try to add it myself. > > Would it be nice if it was possible to pass a URL to 'apt install' so that > a package could be installed

Feature request: install package by passing URL to apt-get

2022-06-22 Thread Person the human
I just want to get everyone's opinion on this before I request it from the developers or possibly try to add it myself. Would it be nice if it was possible to pass a URL to 'apt install' so that a package could be installed without first downloading its .deb file? I think it's good because it can