Skip to content

one liner to create 10gen.list #919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

one liner to create 10gen.list #919

wants to merge 1 commit into from

Conversation

mcarifio
Copy link

One liner to create /etc/apt/sources.list.d/10gen.list from command line. More explicit set of directions facilitates "cut and paste".

One liner to create /etc/apt/sources.list.d/10gen.list from command line. More explicit set of directions facilitates "cut and paste".
@tychoish
Copy link
Contributor

Thanks for this contribution, I think it will make this process much easier. Before I merge it in could I ask a few questions:

  1. Could you please sign the MongoDB/10gen Contributor Agreement. It's located here:

    http://www.10gen.com/legal/contributor-agreement

  2. I'm not sure I see the point of tee command. Isn't in more clear to just append to the file, or at any rate use tee -a? in case people already have content in the file?

Thanks for your time and sorry for the delay.

Cheers,
sam

@mcarifio
Copy link
Author

On 04/25/2013 08:59 PM, Sam Kleinman wrote:

Pleased to meet you Sam. Mike Carifio here. I'm just learning mongodb,
but worked for Canonical for the last three years so I know a little bit
of Ubuntu.

Thanks for this contribution, I think it will make this process much
easier. Before I merge it in could I ask a few questions:

Could you please sign the MongoDB/10gen Contributor Agreement.
It's located here:

http://www.10gen.com/legal/contributor-agreement

Done.

I'm not sure I see the point of |tee| command. Isn't in more clear
to just append to the file, or at any rate use |tee -a|? in case
people already have content in the file?

Typically /etc/apt/sources.list.d is owned by root and needs root privs
to create files there. So 'sudo tee ' is a hack that writes stdin
to as root. By convention, the file in /etc/apt/sources.list.d
represents a single repository, so I would suggest that -a is actually
wrong. You want to overwrite the previous copy. More at
http://stackoverflow.com/questions/82256/how-do-i-use-sudo-to-redirect-output-to-a-location-i-dont-have-permission-to-wr.
They suggest 'sudo tee > /dev/null'. That's probably better.

I guess the point is that each step in the installation has a command
that "does it" except for the step to configure the 10gen repo. So this
one liner keeps that style. Its a minor quibble, but at least I can
contribute something however inconsequential :-).

Thanks for your time and sorry for the delay.

Cheers,
sam


Reply to this email directly or view it on GitHub
#919 (comment).

@tychoish
Copy link
Contributor

merged!

@tychoish tychoish closed this Apr 26, 2013
mongo-cr-bot pushed a commit that referenced this pull request Apr 6, 2022
* (DOCSP-21797): Update content for v5.3 release

* add patch release heading

* cleanup

* add release date for 5.3.1

* remove rc changelog

* formatting

* formatting

* reorder sections

* restructure

* more tweaking

* wording

* copy fix
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 23, 2025
* DOCSP-46527 -- Add GitHub access requirement note

* DOCSP-46527 -- copy review revision

* DOCSP-46527 -- add troubleshooting note

* DOCSP-46527 -- build preview

* DOCSP-46527 -- review revisions

* DOCSP-46527 -- copy review

* DOCSP-46527 -- more review changes

(cherry picked from commit 2a7a16c)
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants